Closed Gonioul closed 1 year ago
Looks like this is the problem: https://github.com/home-assistant/core/pull/95242
Same problem for me after updated to 2023.8.0 yesterday (same log).
@Gonioul you have to tag this issue with the label "integration: freebox" in order to alert integration owner automatically.
Hey there @hacf-fr, @quentame, mind taking a look at this issue as it has been labeled with an integration (freebox
) you are listed as a code owner for? Thanks!
(message by CodeOwnersMention)
freebox documentation freebox source (message by IssueLinks)
Same issue here after updating to 2023.8.0!
Can we give you more details to help with this issue?
That's a painful issue. All services linked to the box are dead. Presence especially.
I would like to suggest a quickfix
In the file "/usr/src/homeassistant/homeassistant/components/freebox/router.py", line 164, in _update_raids_sensors fbx_raids: list[dict[str, Any]] = await self._api.storage.get_raids() or []
Changed the code in fbx_raids: list[dict[str, Any]] = []
I don't find /usr/src with ssh addon or vscode. Most probably due to docker containment. I consider rolling back to 2023.7.3
That's a painful issue. All services linked to the box are dead. Presence especially.
I would like to suggest a quickfix
In the file "/usr/src/homeassistant/homeassistant/components/freebox/router.py", line 164, in _update_raids_sensors fbx_raids: list[dict[str, Any]] = await self._api.storage.get_raids() or []
Changed the code in fbx_raids: list[dict[str, Any]] = []
I don't find /usr/src with ssh addon or vscode. Most probably due to docker containment. I consider rolling back to 2023.7.3
I tried your fix but it still throw an error, if you want to try :
Based on your answer to apply quickly the fix :
# enter the container
docker exec -it homeassistant /bin/bash
# preview the change
sed 's|fbx_raids: list\[dict\[str, Any\]\] = await self._api.storage.get_raids() or \[\]|fbx_raids: list[dict[str, Any]] = []|g' /usr/src/homeassistant/homeassistant/components/freebox/router.py | diff /usr/src/homeassistant/homeassistant/components/freebox/router.py -
# apply the change
sed -i 's|fbx_raids: list\[dict\[str, Any\]\] = await self._api.storage.get_raids() or \[\]|fbx_raids: list[dict[str, Any]] = []|g' /usr/src/homeassistant/homeassistant/components/freebox/router.py
# reload freebox integration
I just submitted a fix via a PR hoping that it will be taken quickly in the next version.
Raid APIs are marked as UNSTABLE at Free so not sure it works everywhere. In any case it does not work on my freebox POP
For those who want to take advantage of the 2023.8.0 version, just copy the freebox component folder as custom_component with the issue code fixed
Because it is the holidays. The correction may not be merged immediately
Thanks @cyr-ius !
Thanks @Write was able to fix it the dirty way on my installation thanks to your comment
Thanks @cyr-ius for the real correction
Thanks @Write was able to fix it the dirty way on my installation thanks to your comment
Thanks @cyr-ius for the real correction
How do you proceed to edit the source file in a Hassio installation? I suppose we cannot access the containers ?
Otherwise, method from @cyr-ius, by adding the integration as custom_component will overload the official one ? Or do I have somethyelse to do in HA ?
Thanks @Write was able to fix it the dirty way on my installation thanks to your comment Thanks @cyr-ius for the real correction
How do you proceed to edit the source file in a Hassio installation? I suppose we cannot access the containers ?
Otherwise, method from @cyr-ius, by adding the integration as custom_component will overload the official one ? Or do I have somethyelse to do in HA ?
Yes, It'll overwrite the official one yes, nothing else to do appart from reloading the integration
Maybe it would be more easy for you to simply downgrade HA to 2023.7.3
EDIT : I was apparently wrong, look @Skuair post
hi, i uploaded the freebox folder on the patch, i added it to custom_components. I reloaded the integration, restarted home assistant, but the problem persists. I must have missed something.
hi, i uploaded the freebox folder on the patch, i added it to custom_components. I reloaded the integration, restarted home assistant, but the problem persists. I must have missed something.
In fact, same for me, the integration loaded is the official one not the one in custom_components.
OK, i found : according to the doc, you need to add a "version" property in the manifest.json of the custom_component (https://developers.home-assistant.io/docs/creating_integration_manifest/#version).
Example of mine:
Then, restart HA and it will work:
OK, j'ai trouvé : selon la doc, il faut ajouter une propriété "version" dans le manifest.json du custom_component ( https://developers.home-assistant.io/docs/creating_integration_manifest/#version ).
Exemple du mien :
Ensuite, redémarrez HA et cela fonctionnera :
did not work for me
Create a folder "freebox" in /config/custom_components like the screenshot and add all files of https://github.com/cyr-ius/home-assistant/tree/Freebox---Enum-raid-disks/homeassistant/components/freebox inside. Then, edit the manifest.json to add a version property like mine. And finally, restart HA. It worked for me.
Hi,
I tried to add files and modify manifest.json adding version but after restarting HA it's still the official integration and not the custom one. Did you change something else ?
Many thanks,
Create a folder "freebox" in /config/custom_components like the screenshot and add all files of https://github.com/cyr-ius/home-assistant/tree/Freebox---Enum-raid-disks/homeassistant/components/freebox inside. Then, edit the manifest.json to add a version property like mine. And finally, restart HA. It worked for me.
I followed your instructions but it still doesn't work. should we remove the official integration?
This Fix #97696 has been merged in 2023.8.1
The problem
Freebox integration doesn't work anymore for my Freebox Revolution in 2023.08, looks for a RAID that doesn't exists.
What version of Home Assistant Core has the issue?
core-2023.8.0
What was the last working version of Home Assistant Core?
core-2023.7.3
What type of installation are you running?
Home Assistant Supervised
Integration causing the issue
Freebox
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