mirror of
https://github.com/home-assistant/core.git
synced 2025-07-19 19:27:45 +00:00
Fix freebox enumerate raid disks (#97696)
This commit is contained in:
parent
37885400c9
commit
3ac2106eb8
@ -161,8 +161,11 @@ class FreeboxRouter:
|
|||||||
async def _update_raids_sensors(self) -> None:
|
async def _update_raids_sensors(self) -> None:
|
||||||
"""Update Freebox raids."""
|
"""Update Freebox raids."""
|
||||||
# None at first request
|
# None at first request
|
||||||
|
try:
|
||||||
fbx_raids: list[dict[str, Any]] = await self._api.storage.get_raids() or []
|
fbx_raids: list[dict[str, Any]] = await self._api.storage.get_raids() or []
|
||||||
|
except HttpRequestError:
|
||||||
|
_LOGGER.warning("Unable to enumerate raid disks")
|
||||||
|
else:
|
||||||
for fbx_raid in fbx_raids:
|
for fbx_raid in fbx_raids:
|
||||||
self.raids[fbx_raid["id"]] = fbx_raid
|
self.raids[fbx_raid["id"]] = fbx_raid
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user