Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Invalid config after upgrade core to 2025.1.0 #319

Closed
qubabos opened this issue Jan 5, 2025 · 8 comments
Closed

Invalid config after upgrade core to 2025.1.0 #319

qubabos opened this issue Jan 5, 2025 · 8 comments

Comments

@qubabos
Copy link
Contributor

qubabos commented Jan 5, 2025

`Rejestrator: homeassistant.loader
Źródło: loader.py:1272
Pierwsze zdarzenie: 10:00:11 (2 zdarzenia)
Ostatnio zalogowany: 10:00:11

Unexpected exception importing platform custom_components.luxtronik2.config_flow
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/loader.py", line 1272, in _load_platform
cache[full_name] = self._import_platform(platform_name)
~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^
File "/usr/src/homeassistant/homeassistant/loader.py", line 1304, in _import_platform
return importlib.import_module(f"{self.pkg_path}.{platform_name}")
~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/src/homeassistant/homeassistant/util/loop.py", line 200, 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 1310, in _find_and_load_unlocked
File "", line 488, in _call_with_frames_removed
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 1026, in exec_module
File "", line 488, in _call_with_frames_removed
File "/config/custom_components/luxtronik2/init.py", line 28, in
from .coordinator import LuxtronikCoordinator
File "/config/custom_components/luxtronik2/coordinator.py", line 22, in
from .common import correct_key_value
File "/config/custom_components/luxtronik2/common.py", line 25, in
from .model import LuxtronikCoordinatorData
File "/config/custom_components/luxtronik2/model.py", line 175, in
class LuxtronikWaterHeaterDescription(
...<14 lines>...
temperature_unit: str = UnitOfTemperature.CELSIUS
TypeError: metaclass conflict: the metaclass of a derived class must be a (non-strict) subclass of the metaclasses of all its bases`

`Rejestrator: homeassistant.config_entries
Źródło: config_entries.py:3314
Pierwsze zdarzenie: 10:00:11 (1 zdarzenia)
Ostatnio zalogowany: 10:00:11

Error occurred loading flow for integration luxtronik2: Exception importing custom_components.luxtronik2.config_flow`

Core 2025.1.0
Supervisor 2024.12.3
Operating System 14.1

@dschoeneborn
Copy link

Same here

@tolife86
Copy link

tolife86 commented Jan 5, 2025

I also got an error message "invalid config" for luxtronik2 after my HA-core update to 2025.1.0, but then I updated this Luxtronik integration from 2024.9.30 to 2025.1.4-Beta and since then everything works fine again.

@S1lencio
Copy link

S1lencio commented Jan 5, 2025

Same issue here

@AJediIAm
Copy link
Contributor

AJediIAm commented Jan 5, 2025

Solved in https://github.com/BenPru/luxtronik/tree/2025.1.4-Beta

@S1lencio
Copy link

S1lencio commented Jan 5, 2025

I had to manually update it with HACS using the "Update information" button to make it show up in the updater, with that it loaded successfully and it looks like everything works! Thank you!

@SHU-red
Copy link

SHU-red commented Jan 6, 2025

Thanks for fixing this

Manually downloaded/updated to 2025.4.1-Beta
Luxtronik is not shown in my integrations anymore
After re-adding it and inserting ip address of my HP this error shows up

What am i doing wrong?

Already removed and re-added
Running in docker
Running HA 2025.1.0

EDIT:

2025-01-06 08:27:04.542 ERROR (MainThread) [custom_components.luxtronik2] Could not handle config_flow.async_step_dhcp DhcpServiceInfo(ip='192.168.178.89', hostname='innotechalpha', macaddress='04d16ed0ec3b')
Traceback (most recent call last):
  File "/config/custom_components/luxtronik2/config_flow.py", line 269, in async_step_dhcp
    self._abort_if_unique_id_configured()
    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^
  File "/usr/src/homeassistant/homeassistant/config_entries.py", line 2668, in _abort_if_unique_id_configured
    raise data_entry_flow.AbortFlow(error)
homeassistant.data_entry_flow.AbortFlow: Flow aborted: already_configured

Found this log above ... do i need to clear out some residual stuff from the setup before HA update?

EDIT2:
Sorry for bloating this issue --> Just had to re-enable the already configured integration
Seems like it was disabled and i did not see the grey button on top showing "disabled 1"

--> Solved for me! Thanks!

image

@qubabos
Copy link
Contributor Author

qubabos commented Jan 7, 2025

works just fine after upgrade, thanks a lot.

@rhammen
Copy link
Contributor

rhammen commented Jan 28, 2025

@qubabos If the issue is solved after updating the integration to 2025.1.4-Beta, please close the issue.

@qubabos qubabos closed this as completed Jan 29, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

7 participants