Open joshuar opened 4 days ago
What you need to do is for the Python process running HA to be able to import the module.
Home Assistant Core won't magically know how to do that for random code from the Internet, which HACS is.
As such, please close this issue and ask the author of the HACS module to document their work or read the manual, if you haven't done so.
There's nothing HA developers can or should do, IMO.
Home Assistant Core won't magically know how to do that for random code from the Internet, which HACS is.
That is incorrect, components installed through HACs and others can include that information in their manifest file. And this is evidenced by the information from OP about the logs referencing failing to install those modules.
Home Assistant Core won't magically know how to do that for random code from the Internet, which HACS is.
That is incorrect, components installed through HACs and others can include that information in their manifest file. And this is evidenced by the information from OP about the logs referencing failing to install those modules.
I am sorry, but do I sound like the kind of person that needs assistance?
Obviously, if HACS doesn't do that, it won't work and even then there are a million reasons for why it wouldn't work in general, but thanks for wasting my time.
You have about the level of a LLM getting it wrong.
I kindly ask you to never speak to me again. Thank you.
I kindly ask you to never speak to me again. Thank you.
You are anything but kind.
The problem
Hey folks,
I’m in a bit of a pickle trying to add integrations from HACS.
I've recently started with a fresh install of 2024.10.1.
After successfully installing/downloading certain integrations through HACS, I am unable to add them to Home Assistant. When adding it, I get an error dialog with the message:
Config flow could not be loaded: {"message":"Invalid handler specified"}
In the Home Assistant log, it seems to correlate with a message like the following:
2024-10-08 21:40:31.362 INFO (SyncWorker_9) [homeassistant.util.package] Attempting install of meross_iot==0.4.7.3 2024-10-08 21:40:31.362 DEBUG (SyncWorker_9) [homeassistant.util.package] Running uv pip command: args=['uv', 'pip', 'install', '--quiet', 'meross_iot==0.4.7.3', '--index-strategy', 'unsafe-first-match', '--upgrade', '--constraint', '/usr/src/homeassistant/homeassistant/package_constraints.txt', '--target', '/config/deps'] 2024-10-08 21:40:40.992 ERROR (MainThread) [homeassistant.config_entries] Error occurred loading flow for integration meross_cloud: No module named 'meross_iot'
That’s specifically when trying to add the "Meross Integration" integration.
It seems integrations that need to install a Python module fail. Integrations that don’t need to install any Python modules, succeed, like themes.
For example, besides the "Meross Integration", the "Tapo Controller" integration also fails to get added, but the Python module in the ERROR log message is different.
Please let me know if you need any more information. As I can reproduce this in a container I can configure and retrieve whatever is needed.
Complete Logs:
home-assistant.tar.gz
Reproduction steps
Cheers!
What version of Home Assistant Core has the issue?
core-2024.10.1
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
No response
Link to integration documentation on our website
No response
Diagnostics information
Diagnostics dump
Example YAML snippet
No response
Anything in the logs that might be useful for us?
Additional information
Reported to HACS https://github.com/hacs/integration/issues/4123 but was closed due to not being a HACS issue.