tschamm / boschshc-hass

Home Assistant component for accessing Bosch Smart Home Controller using boschshcpy python library.
Other
172 stars 27 forks source link

Integration cannot be loaded since HA 2024.2.0 #164

Closed PhilR001 closed 9 months ago

PhilR001 commented 9 months ago

Since HA Version 2024.2.0, the Integration cannot be loaded any more.

Thanks for helping...

Failure message is:

The following integrations and platforms could not loaded:

Bosch-shc

‐----

Log shows:

Logger: homeassistant.config_entries Source: config_entries.py:2275 First occurred: 07:34:00 (1 occurrences) Last logged: 07:34:00

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


Logger: homeassistant.loader Source: loader.py:847 First occurred: 07:34:00 (1 occurrences) Last logged: 07:34:00

Unexpected exception importing platform custom_components.bosch_shc.config_flow Traceback (most recent call last): File "/usr/src/homeassistant/homeassistant/loader.py", line 847, in get_platform cache[full_name] = self._import_platform(platform_name) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/src/homeassistant/homeassistant/loader.py", line 864, in _import_platform return importlib.import_module(f"{self.pkg_path}.{platform_name}") ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/local/lib/python3.12/importlib/init.py", line 90, 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 994, in exec_module File "", line 488, in _call_with_frames_removed File "/config/custom_components/bosch_shc/init.py", line 5, in from boschshcpy import SHCSession, SHCUniversalSwitch File "/usr/local/lib/python3.12/site-packages/boschshcpy/init.py", line 1, in from .device import SHCDevice File "/usr/local/lib/python3.12/site-packages/boschshcpy/device.py", line 4, in from .device_service import SHCDeviceService File "/usr/local/lib/python3.12/site-packages/boschshcpy/device_service.py", line 3, in from .api import SHCAPI File "/usr/local/lib/python3.12/site-packages/boschshcpy/api.py", line 4, in import pkg_resources File "/usr/local/lib/python3.12/site-packages/pkg_resources/init.py", line 2191, in register_finder(pkgutil.ImpImporter, find_on_path) ^^^^^^^^^^^^^^^^^^^ AttributeError: module 'pkgutil' has no attribute 'ImpImporter'. Did you mean: 'zipimporter'?

PhilR001 commented 9 months ago

Is there any easy solution to fix this?

The integration is great, however, I still can't use it

tschamm commented 9 months ago

Fixed with the current release