Yesterday I upgraded HomeAssistant to 2025.12.0 and integration is not working anymore.
Integration version: SmartThings Custom / Version 1.1.17
This is what is in Log:
Logger: homeassistant.config_entries
Source: config_entries.py:761
First occurred: 08:09:19 (3 occurrences)
Last logged: 08:39:53
Error setting up entry My home for smartthings
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/config_entries.py", line 761, 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.13/importlib/init.py", line 88, in import_module
return _bootstrap._gcd_import(name[level:], package, level)
~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "", line 1387, in _gcd_import
File "", line 1360, in _find_and_load
File "", line 1331, in _find_and_load_unlocked
File "", line 935, in _load_unlocked
File "", line 1027, in exec_module
File "", line 488, in _call_with_frames_removed
File "/config/custom_components/smartthings/sensor.py", line 20, in
from homeassistant.const import (
...<10 lines>...
)
ImportError: cannot import name 'AREA_SQUARE_METERS' from 'homeassistant.const' (/usr/src/homeassistant/homeassistant/const.py)
Yesterday I upgraded HomeAssistant to 2025.12.0 and integration is not working anymore.
Integration version: SmartThings Custom / Version 1.1.17
This is what is in Log:
Logger: homeassistant.config_entries
Source: config_entries.py:761
First occurred: 08:09:19 (3 occurrences)
Last logged: 08:39:53
Error setting up entry My home for smartthings
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/config_entries.py", line 761, 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.13/importlib/init.py", line 88, in import_module
return _bootstrap._gcd_import(name[level:], package, level)
~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "", line 1387, in _gcd_import
File "", line 1360, in _find_and_load
File "", line 1331, in _find_and_load_unlocked
File "", line 935, in _load_unlocked
File "", line 1027, in exec_module
File "", line 488, in _call_with_frames_removed
File "/config/custom_components/smartthings/sensor.py", line 20, in
from homeassistant.const import (
...<10 lines>...
)
ImportError: cannot import name 'AREA_SQUARE_METERS' from 'homeassistant.const' (/usr/src/homeassistant/homeassistant/const.py)