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

Cannot start custom integration "elro_connects" after 2023.08.03 #42

Closed
jodewee opened this issue Aug 19, 2023 · 6 comments
Closed

Cannot start custom integration "elro_connects" after 2023.08.03 #42

jodewee opened this issue Aug 19, 2023 · 6 comments

Comments

@jodewee
Copy link

jodewee commented Aug 19, 2023

This error originated from a custom integration.

Logger: homeassistant.setup
Source: custom_components/elro_connects/device.py:10
Integration: Elro Connects (documentation, issues)
First occurred: 09:29:49 (1 occurrences)
Last logged: 09:29:49

Setup failed for custom integration elro_connects: Unable to import component: cannot import name 'K1' from 'elro.api' (/usr/local/lib/python3.11/site-packages/elro/api.py)
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/setup.py", line 215, in _async_setup_component
component = integration.get_component()
^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/src/homeassistant/homeassistant/loader.py", line 813, in get_component
ComponentProtocol, importlib.import_module(self.pkg_path)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.11/importlib/init.py", line 126, in import_module
return _bootstrap._gcd_import(name[level:], package, level)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "", line 1204, in _gcd_import
File "", line 1176, in _find_and_load
File "", line 1147, in _find_and_load_unlocked
File "", line 690, in _load_unlocked
File "", line 940, in exec_module
File "", line 241, in _call_with_frames_removed
File "/config/custom_components/elro_connects/init.py", line 12, in
from .device import ElroConnectsK1
File "/config/custom_components/elro_connects/device.py", line 10, in
from elro.api import K1
ImportError: cannot import name 'K1' from 'elro.api' (/usr/local/lib/python3.11/site-packages/elro/api.py)

@jodewee
Copy link
Author

jodewee commented Aug 19, 2023

already tried to re-install, but nothing seems te work.
For now, reverting to HA core 2023.08.02

@jbouwh
Copy link
Owner

jbouwh commented Aug 19, 2023

It runs fine here with 2023.8.3. Not sure why the import fails.
Did you use HACS to install?

@jodewee
Copy link
Author

jodewee commented Aug 19, 2023

Yes, it's imported via hacs

@jbouwh
Copy link
Owner

jbouwh commented Aug 19, 2023

I'll try to reinstall it myself. May be done dependencies need an update.

@jodewee
Copy link
Author

jodewee commented Aug 19, 2023

ok, thanks in advance!

@jodewee
Copy link
Author

jodewee commented Aug 19, 2023

it works again when i reverted to 2023.08.02.
did again the update to 2023.08.03 --> OK now. probably something went wrong on the update process.
You may close this one

@jbouwh jbouwh closed this as not planned Won't fix, can't repro, duplicate, stale Aug 19, 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

2 participants