You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Since 2025.1 the climate component from smarthings throws an error in my logs.
My smartthings thermostat stopped working since that appeared.
I think it might be related to this PR: #106430
I'm no python pro, but that looks like a breaking change. Unless I'm missing something, the 'in' operator is meant for lists, not bit flags.
What version of Home Assistant Core has the issue?
core-2025.1.1
What was the last working version of Home Assistant Core?
Error adding entity None for domain climate with platform smartthings
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/helpers/entity_platform.py", line 825, in _async_add_entity
capabilities=entity.capability_attributes,
^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/src/homeassistant/homeassistant/components/climate/__init__.py", line 386, in capability_attributes
if ClimateEntityFeature.TARGET_HUMIDITY in supported_features:
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
TypeError: argument of type 'int' is not iterable
The problem
Since 2025.1 the climate component from smarthings throws an error in my logs.
My smartthings thermostat stopped working since that appeared.
I think it might be related to this PR: #106430
I'm no python pro, but that looks like a breaking change. Unless I'm missing something, the 'in' operator is meant for lists, not bit flags.
What version of Home Assistant Core has the issue?
core-2025.1.1
What was the last working version of Home Assistant Core?
core-2024.12
What type of installation are you running?
Home Assistant Container
Integration causing the issue
Smarthings
Link to integration documentation on our website
https://www.home-assistant.io/integrations/smartthings/
Diagnostics information
No response
Example YAML snippet
No response
Anything in the logs that might be useful for us?
Additional information
The climate component's documentation still states that the supported_features are supposed to be bit flags. If you intend to keep using the 'in' operator, I'd suggest updating the documentation to tell people to use a list instead.
https://developers.home-assistant.io/docs/core/entity/climate/#supported-features
The text was updated successfully, but these errors were encountered: