After upgrading to 2026.3.2 i got the error below. I have fixed it in the attached light.py.
Error setting up entry My home for smartthings
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/config_entries.py", line 769, in __async_setup_with_context
result = await component.async_setup_entry(hass, self)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/config/custom_components/smartthings/__init__.py", line 157, in async_setup_entry
broker = DeviceBroker(hass, entry, token, smart_app, devices, scenes)
File "/config/custom_components/smartthings/__init__.py", line 280, in __init__
self._assignments = self._assign_capabilities(devices)
~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^
File "/config/custom_components/smartthings/__init__.py", line 291, in _assign_capabilities
platform_module = importlib.import_module(
f".{platform}", self.__module__
)
File "/usr/src/homeassistant/homeassistant/util/loop.py", line 201, in protected_loop_func
return func(*args, **kwargs)
File "/usr/local/lib/python3.14/importlib/__init__.py", line 88, in import_module
return _bootstrap._gcd_import(name[level:], package, level)
~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "<frozen importlib._bootstrap>", line 1398, in _gcd_import
File "<frozen importlib._bootstrap>", line 1371, in _find_and_load
File "<frozen importlib._bootstrap>", line 1342, in _find_and_load_unlocked
File "<frozen importlib._bootstrap>", line 938, in _load_unlocked
File "<frozen importlib._bootstrap_external>", line 759, in exec_module
File "<frozen importlib._bootstrap>", line 491, in _call_with_frames_removed
File "/config/custom_components/smartthings/light.py", line 9, in <module>
from homeassistant.components.light import (
...<9 lines>...
)
ImportError: cannot import name 'ATTR_COLOR_TEMP' from 'homeassistant.components.light' (/usr/src/homeassistant/homeassistant/components/light/__init__.py)
After upgrading to 2026.3.2 i got the error below. I have fixed it in the attached light.py.
Error setting up entry My home for smartthings
light.py