Error When Setting Up Integration - Config flow could not be loaded: {"message":"Invalid handler specified"}
luckylinux opened this issue · 3 comments
Describe the issue
I'm trying to setup the integration with Home Assistant Docker/Podman (IIRC this is called Home Assistant Core).
After the clicking Settings -> Integrations -> Add Integration -> Search for "Ally" -> Click
And the initial message:
Please wait, starting configuration wizard for danfoss_ally
I get this error:
Config flow could not be loaded: {"message":"Invalid handler specified"}
What version of Home Assistant Core has the issue?
2023.12.4
What was the last working version of Home Assistant Core?
No response
What type of installation are you running?
Home Assistant Core
Diagnostics information
None (cannot add the integration)
Anything in the logs that might be useful for us?
2024-03-17 15:10:49.028 WARNING (SyncWorker_5) [homeassistant.loader] We found a custom integration danfoss_ally which has not been tested by Home Assistant. This component might cause stability problems, be sure to disable it if you experience issues with Home Assistant
2024-03-17 15:10:52.938 ERROR (MainThread) [aiodhcpwatcher] Cannot watch for dhcp packets: [Errno 1] Operation not permitted
2024-03-17 15:12:29.517 ERROR (MainThread) [homeassistant.config_entries] Error occurred loading flow for integration danfoss_ally: No module named 'pydanfossally'
2024-03-17 15:12:36.402 ERROR (MainThread) [homeassistant.config_entries] Error occurred loading flow for integration danfoss_ally: No module named 'pydanfossally
Additional information
The error message is pretty self-explanatory. The required Python modules need to be installed, possibly into a venv, by PIP.
However, how to solve this with a (pre-built) Docker Image from Home Assistant it's not.
If I was doing something from scratch, I'd just write a Dockerfile and setup my own venv in there, similarly to what I do in my own projects.
But is there a way to do this when the image is shipped by somebody else (i.e. pre-built) ? Or the only solution is to take their Dockerfile and modify to suit all my needs ?
Thank you for your help :)
HA 2023.12.4 is already pretty outdated, so please update.
Not sure Danfoss Ally integration actually supports usage in 2023.12.4 anymore
That is correct - you get that from the developer portal
See https://github.com/MTrab/danfoss_ally?tab=readme-ov-file#setup