I was running the Beta2 version and just upgraded to the 3.3.7 via HACS but I am getting an Invalid Config from the integration with the following logs:
This error originated from a custom integration.
Logger: homeassistant.setup
Source: custom_components/versatile_thermostat/climate.py:21
Integration: Versatile Thermostat configuration (documentation, issues)
First occurred: 12:00:50 AM (1 occurrences)
Last logged: 12:00:50 AM
Setup failed for custom integration versatile_thermostat: Unable to import component: cannot import name 'DeviceInfo' from 'homeassistant.helpers.device_registry' (/usr/src/homeassistant/homeassistant/helpers/device_registry.py)
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/setup.py", line 215, in _async_setup_component
component = integration.get_component()
^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/src/homeassistant/homeassistant/loader.py", line 813, in get_component
ComponentProtocol, importlib.import_module(self.pkg_path)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.11/importlib/init.py", line 126, in import_module
return _bootstrap._gcd_import(name[level:], package, level)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "", line 1204, in _gcd_import
File "", line 1176, in _find_and_load
File "", line 1147, in _find_and_load_unlocked
File "", line 690, in _load_unlocked
File "", line 940, in exec_module
File "", line 241, in _call_with_frames_removed
File "/config/custom_components/versatile_thermostat/init.py", line 11, in
from .climate import VersatileThermostat
File "/config/custom_components/versatile_thermostat/climate.py", line 21, in
from homeassistant.helpers.device_registry import DeviceInfo, DeviceEntryType
ImportError: cannot import name 'DeviceInfo' from 'homeassistant.helpers.device_registry' (/usr/src/homeassistant/homeassistant/helpers/device_registry.py)
I looked at the commit for 3.3.7 and see things have changed in the import for DeviceInfo.
I am a le to revert to beta2 and have it working again in the meantime.
Hey there,
I was running the Beta2 version and just upgraded to the 3.3.7 via HACS but I am getting an Invalid Config from the integration with the following logs:
I looked at the commit for 3.3.7 and see things have changed in the import for DeviceInfo. I am a le to revert to beta2 and have it working again in the meantime.