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

[2023.10.12-Beta] climate and water_heater could not be set up #149

Closed
ChrisMisker opened this issue Oct 12, 2023 · 2 comments
Closed

[2023.10.12-Beta] climate and water_heater could not be set up #149

ChrisMisker opened this issue Oct 12, 2023 · 2 comments

Comments

@ChrisMisker
Copy link

ChrisMisker commented Oct 12, 2023

Hi,
I get this error in the notification:
Scherm­afbeelding 2023-10-12 om 07 02 09

When inspecting the logs, I get these errors:

Logger: homeassistant.setup
Source: setup.py:359
First occurred: 06:58:16 (2 occurrences)
Last logged: 06:58:16

Unable to prepare setup for platform luxtronik2.climate: Platform not found (Exception importing custom_components.luxtronik2.climate).
Unable to prepare setup for platform luxtronik2.water_heater: Platform not found (Exception importing custom_components.luxtronik2.water_heater).
Logger: homeassistant.loader
Source: loader.py:838
First occurred: 06:58:16 (1 occurrences)
Last logged: 06:58:16

Unexpected exception importing platform custom_components.luxtronik2.water_heater
Traceback (most recent call last):
  File "/usr/src/homeassistant/homeassistant/loader.py", line 838, in get_platform
    cache[full_name] = self._import_platform(platform_name)
                       ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/src/homeassistant/homeassistant/loader.py", line 855, 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 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/luxtronik2/water_heater.py", line 52, in <module>
    LuxtronikWaterHeaterDescription(
TypeError: LuxtronikWaterHeaterDescription.__init__() got an unexpected keyword argument 'temperature_unit'
Logger: homeassistant.loader
Source: loader.py:838
First occurred: 06:58:16 (1 occurrences)
Last logged: 06:58:16

Unexpected exception importing platform custom_components.luxtronik2.climate
Traceback (most recent call last):
  File "/usr/src/homeassistant/homeassistant/loader.py", line 838, in get_platform
    cache[full_name] = self._import_platform(platform_name)
                       ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/src/homeassistant/homeassistant/loader.py", line 855, 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 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/luxtronik2/climate.py", line 88, in <module>
    LuxtronikClimateDescription(
TypeError: LuxtronikClimateDescription.__init__() got an unexpected keyword argument 'temperature_unit'

I'm on 2023.10.12-Beta and on Home Assistant 2023.10.1. I've also restarted the Heatpump, just to be sure, didn't fix it. (And of course rebooted HA). I have also removed and reinstalled the custom component, didn't work.

rhammen added a commit to rhammen/BenPru_luxtronik that referenced this issue Oct 12, 2023
@rhammen rhammen mentioned this issue Oct 12, 2023
@rhammen
Copy link
Contributor

rhammen commented Oct 12, 2023

Sorry, my mistake, forgot to include 2 small changes in model.py

@ChrisMisker
Copy link
Author

Seems to be fixed in latest beta (2023.10.13).

@BenPru BenPru closed this as completed Oct 13, 2023
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

3 participants