-
-
Notifications
You must be signed in to change notification settings - Fork 43
Description
Version of the custom_component
2024.10.2
Configuration
Mes configurations sont minimales sur la helm chart de k8s-at-home:
env:
TZ: "America/Toronto"
hostNetwork: true
image:
tag: "2024.11"Describe the bug
Mon setup home assistant:
- Docker image sur Kubernetes (microk8s)
- Home assistant 2024.11
- Image repo: https://ghcr.io/home-assistant/home-assistant
- HACS: 2.0.1
Le problème semble que python ne semble pas retrouver les dependencies de l'intégration. Ça me fait ça depuis que j'ai updaté Home Assistant et HACS post 2024.4 je crois. Mon dossiers /config/deps contient bien pyhilo, mais j'ai l'impression que ça n'est pas retrouvé par python. J'ai tenté d'aller dans le dossier de mon pod des "site-packages" (/usr/local/lib/python3.12/site-packages) et j'ai copié le dossier de /config/deps dans ce dossier et redémarré home-assistant à partir du web interface (ça redémarre pas mon pod donc je perds pas mon stock copié) et maintenant le plugin load. Je ne crois pas que c'est 100% en lien avec l'intégration hilo, mais j'aimerais savoir si vous avez une idée de la raison que les dépendances ne fonctionne plus correctement?
Debug log
2024-11-10 14:49:43.923 ERROR (MainThread) [homeassistant.setup] Setup failed for custom integration 'hilo': Unable to import component: No module named 'pyhilo'
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/loader.py", line 979, in async_get_component
comp = await self.hass.async_add_import_executor_job(
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.12/concurrent/futures/thread.py", line 58, in run
result = self.fn(*self.args, **self.kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/src/homeassistant/homeassistant/loader.py", line 1037, in _get_component
ComponentProtocol, importlib.import_module(self.pkg_path)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
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 1331, in _find_and_load_unlocked
File "", line 935, in _load_unlocked
File "", line 995, in exec_module
File "", line 488, in _call_with_frames_removed
File "/config/custom_components/hilo/init.py", line 38, in
from pyhilo import API
ModuleNotFoundError: No module named 'pyhilo'