Closed webcamleif closed 3 months ago
Hey there @bdraco, mind taking a look at this issue as it has been labeled with an integration (unifiprotect
) you are listed as a code owner for? Thanks!
(message by CodeOwnersMention)
unifiprotect documentation unifiprotect source (message by IssueLinks)
We can close this, after debugging I found that another integration was locking the aiofiles package to version 0.6.0. After fixing that, the integration works again.
The problem
So I have been running HA for some years, and lately I been slow at upgrading, so I did upgrade today from 2023.09 to 2024.05.
Earlier I upgraded my Unifi Protect application from 2.X to 3.0.26 and I had no problem, until I reloaded the integration in HA after upgrading. Now I cannot get the integration to work anymore, and my problem is not like the earlier problems from 2024.03.
The error indicates that the problem is with the pip package aiofiles, and when I check installed version in the container it looks like this: e8dcad710584:/usr/src/homeassistant# python3 -m pip freeze | grep aiofiles aiofiles==0.6.0
However in 0.6.0 which was released in 2020, the function "makedirs" is not yet implemented, it is implemented in the 0.8.0 release.
I have checked the requirements files in the repo, and in requirements_test.txt I can find: types-aiofiles==23.2.0.20240311
I have completely removed the container and downloaded it again, that did not solve the problem.
What version of Home Assistant Core has the issue?
latest / 2024.5.4 / stable
What was the last working version of Home Assistant Core?
Hard to say, I ran 2023.09.03 prior
What type of installation are you running?
Home Assistant Container
Integration causing the issue
Unifi Protect
Link to integration documentation on our website
No response
Diagnostics information
No response
Example YAML snippet
No response
Anything in the logs that might be useful for us?
Additional information
No response