ollo69 / ha-smartthinq-sensors

HomeAssistant custom integration for SmartThinQ LG devices configurable with Lovelace User Interface.
Apache License 2.0
1.04k stars 149 forks source link

Failed to set up #694

Closed OddmarDam closed 4 months ago

OddmarDam commented 4 months ago

Describe the bug Plugin says faiel to setup

Expected behavior

Screenshots

Environment details:

Output of HA logs Logger: homeassistant.config_entries Source: config_entries.py:406 First occurred: 6 February 2024 at 09:58:39 (2 occurrences) Last logged: 15:46:12

Error setting up entry LGE Devices for smartthinq_sensors Traceback (most recent call last): File "/usr/src/homeassistant/homeassistant/config_entries.py", line 406, in async_setup result = await component.async_setup_entry(hass, self) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/config/custom_components/smartthinq_sensors/init.py", line 215, in async_setup_entry await cleanup_orphan_lge_devices(hass, config_entry.entry_id, client) File "/config/custom_components/smartthinq_sensors/init.py", line 596, in cleanup_orphan_lge_devices device_registry = await hass.helpers.device_registry.async_get_registry() ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/src/homeassistant/homeassistant/loader.py", line 1075, in getattr value = getattr(self._module, attr) ^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/src/homeassistant/homeassistant/helpers/deprecation.py", line 258, in check_if_deprecated_constant raise AttributeError(f"Module {module_name!r} has no attribute {name!r}") AttributeError: Module 'homeassistant.helpers.device_registry' has no attribute 'async_get_registry'

ollo69 commented 4 months ago

Can you give detail about integration version and how you install? Looking the code seems that you are using an old version

ollo69 commented 4 months ago

I close this because I do not receive any answer and issue seems related to an old integration release