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

Unexpected exception importing platform custom_components.miele.sensor #157

Open
MicroZot opened this issue May 25, 2023 · 1 comment
Open

Comments

@MicroZot
Copy link

HI,
I have a Miele 7130 dishwasher.
In recent months, the integration worked. Then due to a malfunction I deleted (even the token from the .storage folder), and reinstalled everything.
integration: miele-0.9.5
Home assistant: 2023.5.4

Now I can't get the integration to work anymore. I recreated the token but I get the following error messages:


Logger: homeassistant.loader
Source: loader.py:850
First occurred: 17:01:16 (1 occurrences)
Last logged: 17:01:16

Unexpected exception importing platform custom_components.miele.sensor
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/loader.py", line 833, in get_platform
cache[full_name] = self._import_platform(platform_name)
File "/usr/src/homeassistant/homeassistant/loader.py", line 850, in _import_platform
return importlib.import_module(f"{self.pkg_path}.{platform_name}")
File "/usr/local/lib/python3.10/importlib/init.py", line 126, in import_module
return _bootstrap._gcd_import(name[level:], package, level)
File "", line 1050, in _gcd_import
File "", line 1027, in _find_and_load
File "", line 1006, in _find_and_load_unlocked
File "", line 688, in _load_unlocked
File "", line 879, in exec_module
File "", line 1017, in get_code
File "", line 947, in source_to_code
File "", line 241, in _call_with_frames_removed
File "/config/custom_components/miele/sensor.py", line 5
from homeassistant.const import SensorDeviceClass.ENERGY
^
SyntaxError: invalid syntax

Logger: homeassistant.setup
Source: setup.py:348
First occurred: 17:01:16 (1 occurrences)
Last logged: 17:01:16

Unable to prepare setup for platform miele.sensor: Platform not found (Exception importing custom_components.miele.

Suggestions?
Thank you
Andrew C

@kloknibor
Copy link
Contributor

Please try the new update that was just released, this should solve it :-)

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

2 participants