fustom / ariston-remotethermo-home-assistant-v3

Ariston NET remotethermo integration for Home Assistant based on API
MIT License
160 stars 38 forks source link

Config flow could not be loaded: {"message":"Invalid handler specified"} #254

Closed txtasosxt closed 9 months ago

txtasosxt commented 10 months ago

Using Raspberry Pi 5, Home Assistant's OS version:

Core 2024.1.0.dev20231218 Supervisor 2023.12.0 Operating System 11.4.dev20231223 Frontend 20231218.0.dev

I installed HACS, restarted the system. Installed this Ariston Integration, restarted the system. Then I tried to add a device/integration and after selecting the option Ariston, I'm welcomed with the following error:

Using Config flow could not be loaded: {"message":"Invalid handler specified"}

txtasosxt commented 10 months ago

I've found this in the logs

2023-12-26 08:53:51.351 ERROR (MainThread) [homeassistant.loader] Unexpected exception importing platform custom_components.ariston.config_flow
Traceback (most recent call last):
  File "/usr/src/homeassistant/homeassistant/loader.py", line 834, in get_platform
    cache[full_name] = self._import_platform(platform_name)
                       ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/src/homeassistant/homeassistant/loader.py", line 851, in _import_platform
    return importlib.import_module(f"{self.pkg_path}.{platform_name}")
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.11/importlib/__init__.py", line 126, in import_module
    return _bootstrap._gcd_import(name[level:], package, level)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "<frozen importlib._bootstrap>", line 1204, in _gcd_import
  File "<frozen importlib._bootstrap>", line 1176, in _find_and_load
  File "<frozen importlib._bootstrap>", line 1126, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 241, in _call_with_frames_removed
  File "<frozen importlib._bootstrap>", line 1204, in _gcd_import
  File "<frozen importlib._bootstrap>", line 1176, in _find_and_load
  File "<frozen importlib._bootstrap>", line 1147, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 690, in _load_unlocked
  File "<frozen importlib._bootstrap_external>", line 940, in exec_module
  File "<frozen importlib._bootstrap>", line 241, in _call_with_frames_removed
  File "/config/custom_components/ariston/__init__.py", line 25, in <module>
    from .const import (
  File "/config/custom_components/ariston/const.py", line 68, in <module>
    class AristonBaseEntityDescription(EntityDescription, ABC):
TypeError: metaclass conflict: the metaclass of a derived class must be a (non-strict) subclass of the metaclasses of all its bases
2023-12-26 08:53:51.356 ERROR (MainThread) [homeassistant.config_entries] Error occurred loading flow for integration ariston: Exception importing custom_components.ariston.config_flow

https://github.com/fustom/ariston-remotethermo-home-assistant-v3/blob/c626b41edbcfc36a45460f89883f28ae871b3fdd/custom_components/ariston/const.py#L68

camui-alexandru commented 10 months ago

Yea, after the 2024.1 update, the Ariston Addon stopped working...

Nemesis24 commented 10 months ago

same for me

desosav commented 10 months ago

Same issue here. Most probably this is related to the following: support constants deprecation/

camui-alexandru commented 9 months ago

I restored the 2023.12 core till the problem will be resolved. We need an ariston addon update or a HA core core update ?

fustom commented 9 months ago

251