8000 Smartthings errors in 2025.3.0b4 · Issue #139756 · home-assistant/core · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

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

Closed
samsonusmc opened this issue Mar 4, 2025 · 6 comments · Fixed by #139758
Closed

Smartthings errors in 2025.3.0b4 #139756

samsonusmc opened this issue Mar 4, 2025 · 6 comments · Fixed by #139758

Comments

@samsonusmc
Copy link

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

@home-assistant
Copy link
home-assistant bot commented Mar 4, 2025

Hey there @joostlek, mind taking a look at this issue as it has been labeled with an integration (smartthings) you are listed as a code owner for? Thanks!

Code owner commands

Code owners of smartthings can trigger bot actions by commenting:

  • @home-assistant close Closes the issue.
  • @home-assistant rename Awesome new title Renames the issue.
  • @home-assistant reopen Reopen the issue.
  • @home-assistant unassign smartthings Removes the current integration label and assignees on the issue, add the integration domain after the command.
  • @home-assistant add-label needs-more-information Add a label (needs-more-information, problem in dependency, problem in custom component) to the issue.
  • @home-assistant remove-label needs-more-information Remove a label (needs-more-information, problem in dependency, problem in custom component) on the issue.

(message by CodeOwnersMention)


smartthings documentation
smartthings source
(message by IssueLinks)

@joostlek
Copy link
Member
joostlek commented Mar 4, 2025

Wait you have a virtual hub? How does that work?

@samsonusmc
Copy link
Author

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.
Do you want me to delete it and move on or do we want to try to address this?

Since I don't think I use the integration anymore, I'm good with either.

@samsonusmc
Copy link
Author

Oh.. nevermind. Looks like you already did a PR for 2.5.0. Thank you!

@joostlek
Copy link
Member
joostlek commented Mar 4, 2025

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 :)

@samsonusmc
Copy link
Author

Image

2016 was when I created it... so¯_(ツ)_/¯
..but glad to knock it out before GA of 2025.3

Thanks again!

@github-actions github-actions bot locked and limited conversation to collaborators Apr 3, 2025
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants
0