home-assistant / core

:house_with_garden: Open source home automation that puts local control and privacy first.
https://www.home-assistant.io
Apache License 2.0
73.88k stars 30.95k forks source link

Decora Wifi module missing #128593

Open rforced opened 1 month ago

rforced commented 1 month ago

The problem

I'm seeing the following errors when adding my decora_wifi integration to my configuration.yml

Oct 17 11:09:42 homeassistant[37093]: from decora_wifi import DecoraWiFiSession Oct 17 11:09:42 homeassistant[37093]: ModuleNotFoundError: No module named 'decora_wifi

I'm running in a docker container.

What version of Home Assistant Core has the issue?

core-2024.10.2

What was the last working version of Home Assistant Core?

No response

What type of installation are you running?

Home Assistant Container

Integration causing the issue

Decora Wifi

Link to integration documentation on our website

https://www.home-assistant.io/integrations/decora_wifi

Diagnostics information

No response

Example YAML snippet

No response

Anything in the logs that might be useful for us?

Oct 17 11:09:42 server.jd homeassistant[37093]: 2024-10-17 11:09:42.498 ERROR (MainThread) [homeassistant.config] Platform error: light - No module named 'decora_wifi'
Oct 17 11:09:42 server.jd homeassistant[37093]: Traceback (most recent call last):
Oct 17 11:09:42 server.jd homeassistant[37093]:   File "/usr/src/homeassistant/homeassistant/config.py", line 1413, in _async_load_and_validate_platform_integration
Oct 17 11:09:42 server.jd homeassistant[37093]:     platform = await p_integration.integration.async_get_platform(domain)
Oct 17 11:09:42 server.jd homeassistant[37093]:                ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
Oct 17 11:09:42 server.jd homeassistant[37093]:   File "/usr/src/homeassistant/homeassistant/loader.py", line 1100, in async_get_platform
Oct 17 11:09:42 server.jd homeassistant[37093]:     platforms = await self.async_get_platforms((platform_name,))
Oct 17 11:09:42 server.jd homeassistant[37093]:                 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
Oct 17 11:09:42 server.jd homeassistant[37093]:   File "/usr/src/homeassistant/homeassistant/loader.py", line 1177, in async_get_platforms
Oct 17 11:09:42 server.jd homeassistant[37093]:     import_future.result()
Oct 17 11:09:42 server.jd homeassistant[37093]:   File "/usr/src/homeassistant/homeassistant/loader.py", line 1147, in async_get_platforms
Oct 17 11:09:42 server.jd homeassistant[37093]:     await self.hass.async_add_import_executor_job(
Oct 17 11:09:42 server.jd homeassistant[37093]:   File "/usr/local/lib/python3.12/concurrent/futures/thread.py", line 58, in run
Oct 17 11:09:42 server.jd homeassistant[37093]:     result = self.fn(*self.args, **self.kwargs)
Oct 17 11:09:42 server.jd homeassistant[37093]:              ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
Oct 17 11:09:42 server.jd homeassistant[37093]:   File "/usr/src/homeassistant/homeassistant/loader.py", line 1090, in _load_platforms
Oct 17 11:09:42 server.jd homeassistant[37093]:     platform_name: self._load_platform(platform_name)
Oct 17 11:09:42 server.jd homeassistant[37093]:                    ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
Oct 17 11:09:42 server.jd homeassistant[37093]:   File "/usr/src/homeassistant/homeassistant/loader.py", line 1264, in _load_platform
Oct 17 11:09:42 server.jd homeassistant[37093]:     cache[full_name] = self._import_platform(platform_name)
Oct 17 11:09:42 server.jd homeassistant[37093]:                        ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
Oct 17 11:09:42 server.jd homeassistant[37093]:   File "/usr/src/homeassistant/homeassistant/loader.py", line 1296, in _import_platform
Oct 17 11:09:42 server.jd homeassistant[37093]:     return importlib.import_module(f"{self.pkg_path}.{platform_name}")
Oct 17 11:09:42 server.jd homeassistant[37093]:            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
Oct 17 11:09:42 server.jd homeassistant[37093]:   File "/usr/src/homeassistant/homeassistant/util/loop.py", line 200, in protected_loop_func
Oct 17 11:09:42 server.jd homeassistant[37093]:     return func(*args, **kwargs)
Oct 17 11:09:42 server.jd homeassistant[37093]:            ^^^^^^^^^^^^^^^^^^^^^
Oct 17 11:09:42 server.jd homeassistant[37093]:   File "/usr/local/lib/python3.12/importlib/__init__.py", line 90, in import_module
Oct 17 11:09:42 server.jd homeassistant[37093]:     return _bootstrap._gcd_import(name[level:], package, level)
Oct 17 11:09:42 server.jd homeassistant[37093]:            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
Oct 17 11:09:42 server.jd homeassistant[37093]:   File "<frozen importlib._bootstrap>", line 1387, in _gcd_import
Oct 17 11:09:42 server.jd homeassistant[37093]:   File "<frozen importlib._bootstrap>", line 1360, in _find_and_load
Oct 17 11:09:42 server.jd homeassistant[37093]:   File "<frozen importlib._bootstrap>", line 1331, in _find_and_load_unlocked
Oct 17 11:09:42 server.jd homeassistant[37093]:   File "<frozen importlib._bootstrap>", line 935, in _load_unlocked
Oct 17 11:09:42 server.jd homeassistant[37093]:   File "<frozen importlib._bootstrap_external>", line 995, in exec_module
Oct 17 11:09:42 server.jd homeassistant[37093]:   File "<frozen importlib._bootstrap>", line 488, in _call_with_frames_removed
Oct 17 11:09:42 server.jd homeassistant[37093]:   File "/usr/src/homeassistant/homeassistant/components/decora_wifi/light.py", line 8, in <module>
Oct 17 11:09:42 server.jd homeassistant[37093]:     from decora_wifi import DecoraWiFiSession
Oct 17 11:09:42 server.jd homeassistant[37093]: ModuleNotFoundError: No module named 'decora_wifi'

Additional information

No response

home-assistant[bot] commented 1 month ago

decora_wifi documentation decora_wifi source

rforced commented 1 month ago

I found a solution for this, if you log into the container and run "pip3 install decora_wifi", it works again.