-
-
Notifications
You must be signed in to change notification settings - Fork 30.3k
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
Freebox Revolution has no RAID #97652
Comments
Looks like this is the problem: #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 ( Code owner commandsCode owners of
(message by CodeOwnersMention) freebox documentation |
That's a painful issue. I would like to suggest a quickfix In the file "/usr/src/homeassistant/homeassistant/components/freebox/router.py", line 164, in _update_raids_sensors Changed the code in I don't find /usr/src with ssh addon or vscode. Most probably due to docker containment. |
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 |
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 ! |
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. |
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). |
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. |
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. Many thanks, |
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
The text was updated successfully, but these errors were encountered: