-
-
Notifications
You must be signed in to change notification settings - Fork 33.9k
Smartthings errors in 2025.3.0b4 #139756
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
Hey there @joostlek, mind taking a look at this issue as it has been labeled with an integration ( Code owner commandsCode owners of
(message by CodeOwnersMention) smartthings documentation |
Wait you have a virtual hub? How does that work? |
I was actually asking myself why I had it (which integration added it). I think it was related to a hubitat <=> smartthings integration that I no longer use. Since I don't think I use the integration anymore, I'm good with either. |
Oh.. nevermind. Looks like you already did a PR for 2.5.0. Thank you! |
Yes, I fixed it for now, but I was wondering what kind of device it could be. Also because you might not be the only one here :) |
The problem
Looks like I'm getting two errors after authentication
`2025-03-04 08:01:47.048 ERROR (MainThread) [homeassistant.config_entries] Error setting up entry Home for smartthings
Traceback (most recent call last):
File "", line 107, in mashumaro_from_dict_json
File "", line 3, in mashumaro_from_dict_json
File "/usr/local/lib/python3.13/site-packages/pysmartthings/models.py", line 281, in pre_deserialize
"macAddress": d["hubData"]["macAddress"],
~~~~~~~~~~~~^^^^^^^^^^^^^^
KeyError: 'macAddress'
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "", line 9, in mashumaro_from_json
File "", line 109, in mashumaro_from_dict_json
mashumaro.exceptions.InvalidFieldValue: Field "hub" of type Optional[Hub] in Device has invalid value {'hubEui': 'virtual-8330dc84-358d-4f86-8692-5a32e14266c8', 'firmwareVersion': '', 'hubDrivers': [], 'hubData': {'zwaveS2': False, 'hardwareType': 'OTHER', 'zigbee3': False, 'zigbeeOta': 'DISABLED', 'otaEnable': 'false', 'zigbeeUnsecureRejoin': True, 'zigbeeRequiresExternalHardware': False, 'threadRequiresExternalHardware': False, 'zigbeeManualFirmwareUpdateSupported': False, 'matterRendezvousHedgeSupported': False, 'zigbeeRadioFunctional': False, 'zwaveRadioFunctional': False, 'zigbeeRadioEnabled': False, 'zwaveRadioEnabled': False, 'zigbeeRadioDetected': False, 'zwaveRadioDetected': False, 'enrollmentChannel': 'PUBLIC'}}
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/config_entries.py", line 753, in __async_setup_with_context
result = await component.async_setup_entry(hass, self)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/src/homeassistant/homeassistant/components/smartthings/init.py", line 95, in async_setup_entry
devices = await client.get_devices()
^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.13/site-packages/pysmartthings/smartthings.py", line 202, in get_devices
return DeviceResponse.from_json(resp).items
~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^
File "", line 11, in mashumaro_from_json
mashumaro.exceptions.InvalidFieldValue: Field "items" of type list[Device] in DeviceResponse has invalid valu`
What version of Home Assistant Core has the issue?
core-2025.3.0b4
What was the last working version of Home Assistant Core?
No response
What type of installation are you running?
Home Assistant OS
Integration causing the issue
smartthings
Link to integration documentation on our website
https://rc.home-assistant.io/integrations/smartthings
Diagnostics information
Cannot initialize smartthings after authenciation. The logs show the following two errors:
2025-03-04 08:01:47.048 ERROR (MainThread) [homeassistant.config_entries] Error setting up entry Home for smartthings Traceback (most recent call last): File "<string>", line 107, in __mashumaro_from_dict_json__ File "<string>", line 3, in __mashumaro_from_dict_json__ File "/usr/local/lib/python3.13/site-packages/pysmartthings/models.py", line 281, in __pre_deserialize__ "macAddress": d["hubData"]["macAddress"], ~~~~~~~~~~~~^^^^^^^^^^^^^^ KeyError: 'macAddress'
and
`Traceback (most recent call last):
File "", line 9, in mashumaro_from_json
File "", line 109, in mashumaro_from_dict_json
mashumaro.exceptions.InvalidFieldValue: Field "hub" of type Optional[Hub] in Device has invalid value {'hubEui': 'virtual-8330dc84-358d-4f86-8692-5a32e14266c8', 'firmwareVersion': '', 'hubDrivers': [], 'hubData': {'zwaveS2': False, 'hardwareType': 'OTHER', 'zigbee3': False, 'zigbeeOta': 'DISABLED', 'otaEnable': 'false', 'zigbeeUnsecureRejoin': True, 'zigbeeRequiresExternalHardware': False, 'threadRequiresExternalHardware': False, 'zigbeeManualFirmwareUpdateSupported': False, 'matterRendezvousHedgeSupported': False, 'zigbeeRadioFunctional': False, 'zwaveRadioFunctional': False, 'zigbeeRadioEnabled': False, 'zwaveRadioEnabled': False, 'zigbeeRadioDetected': False, 'zwaveRadioDetected': False, 'enrollmentChannel': 'PUBLIC'}}
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/config_entries.py", line 753, in __async_setup_with_context
result = await component.async_setup_entry(hass, self)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/src/homeassistant/homeassistant/components/smartthings/init.py", line 95, in async_setup_entry
devices = await client.get_devices()
^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.13/site-packages/pysmartthings/smartthings.py", line 202, in get_devices
return DeviceResponse.from_json(resp).items
~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^
File "", line 11, in mashumaro_from_json`
Example YAML snippet
Anything in the logs that might be useful for us?
Additional information
No response
The text was updated successfully, but these errors were encountered: