-
Notifications
You must be signed in to change notification settings - Fork 32
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Setup failed for custom integration 'miele': Unable to import component: No module named 'flatdict' #570
Comments
Same problem has been reported recently, though it works for many thousands of users. |
Whoops did I miss an existing issue?
Existing install but upgraded HA
Kubernetes so Docker |
Please see #568 |
Haven't found anything yet in the logs besides what I shared. Did find flatdict in the deps directory so it is there. Will dig deeper into the logs |
You can add these lines to your config/configuration.yaml, restart HA and see if anything more is revealed. logger:
default: info
logs:
custom_components.miele: debug
pymiele: debug |
Just rolled that out, the only things now I can find now are:
|
Do you still get the stack trace as above? |
Yes that is still there |
Hey @WyriHaximus , got the same issue and could fix it by installing the missing libraries directly in the container
Hope that works for you too. |
Thanks for the suggestion @jeanmoulart. Tried that, also removed the integration and both flatdict and pymiele from deps but essentially the same issue persists even tho HA will install both packages. The error is now just:
|
I have seen in the logs when building and starting HA in my development container that flatdict, and a few other libraries not related to this integration, are built as wheels. To me this indicates that the wheels binary package is not prebuilt in the distribution. It works for the absolute majority of users and I have no real clue what is missing in your setup. |
I have tried to install miele in a fresh HA container without any problems - everything works as expected. # Access the container
docker exec -it homeassistant /bin/bash
# Show python version
python3 --version
#Show your installed flatdict version, if any...
pip show flatdict
#Uninstall flatdict
pip uninstall flatdict
# Install the required version manually
pip install flatdict==4.0.1 Restart HA and install Miele integration. |
This problem is not caused by this integration. It is obviously something wrong with the way requirements are loaded for custom_components. |
Agreed, and it's a nasty breaking change. Especially since HA is supposed to manage this for us.
Having a similar issue with flightradar24 ye.
Thanks, I will have a look 👍 . Do you prefer to keep this open until it's resolved at the root cause (assuming pip vs uv) or just close it? |
Seems they fixed something in the first major release of 2025, just upgraded to .2 and both this and the flight radar integrations just worked again |
The problem
Integration doesn't start
Version of miele integration having the issue?
v2024.8.1
Version of Home Assistant Core having the issue?
2024.10.3
Anything in the logs that might be useful for us?
Additional information
Restarting HA doesn't fix this - refs #279
The text was updated successfully, but these errors were encountered: