Skip to content

Commit

Permalink
Fix unhashable list
Browse files Browse the repository at this point in the history
  • Loading branch information
cyr-ius committed Aug 25, 2023
1 parent 2a6a710 commit ee2e97a
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 8 deletions.
18 changes: 11 additions & 7 deletions custom_components/bbox2/coordinator.py
Original file line number Diff line number Diff line change
Expand Up @@ -37,20 +37,24 @@ def __init__(
async def _async_update_data(self) -> dict:
"""Fetch datas."""
try:
bbox_info = self.check_list({await self.bbox.device.async_get_bbox_info()})
bbox_info = self.check_list(await self.bbox.device.async_get_bbox_info())
devices = self.check_list(await self.bbox.lan.async_get_connected_devices())
wan_ip_stats = self.check_list(await self.bbox.wan.async_get_wan_ip_stats())
# wan = self.check_list(await self.bbox.wan.async_get_wan_ip())
# iptv_channels_infos = self.check_list(await self.bbox.iptv.async_get_iptv_info())
# lan_stats = self.check_list(await self.bbox.lan.async_get_lan_stats())
# voicemail = self.check_list(await self.bbox.voip.async_get_voip_voicemail())
# device_info = self.check_list(await self.bbox.lan.async_get_device_infos())

return {
"info": bbox_info,
"devices": devices,
"wan_ip_stats": wan_ip_stats,
# "wan": await self.bbox.wan.async_get_wan_ip(),
# "physical_stats": physical_stats,
# "iptv_channels_infos": await self.bbox.iptv.async_get_iptv_info(),
# "lan_stats": await self.bbox.lan.async_get_lan_stats(),
# "voicemail": await self.bbox.lan.async_get_voip_voicemail(),
# "physical_support": physical_support
# "wan": wan,
# "iptv_channels_infos": iptv_channels_infos,
# "lan_stats": lan_stats,
# "voicemail": voicemail,
# "device_info": device_info,
}
except Exception as error:
_LOGGER.error(error)
Expand Down
2 changes: 1 addition & 1 deletion custom_components/bbox2/manifest.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,6 @@
"loggers": ["bboxpy"],
"requirements": ["bboxpy==1.1.5"],
"ssdp": [],
"version": "1.2.2",
"version": "1.2.3",
"zeroconf": []
}

0 comments on commit ee2e97a

Please sign in to comment.