hagooglewifi
hagooglewifi copied to clipboard
'list' object has no attribute 'get'
I'm getting this error. The integration is still running. I just want to report this if it's something that isn't correct and should be changed.
Unexpected error fetching GoogleWifi data: 'list' object has no attribute 'get'
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/helpers/update_coordinator.py", line 239, in _async_refresh
self.data = await self._async_update_data()
File "/config/custom_components/googlewifi/__init__.py", line 171, in _async_update_data
system_data = await self.api.get_systems()
File "/usr/local/lib/python3.10/site-packages/googlewifi/__init__.py", line 191, in get_systems
return await self.structure_systems(response)
File "/usr/local/lib/python3.10/site-packages/googlewifi/__init__.py", line 284, in structure_systems
sensitive_info = await self.get_sensitive_info(system_id=this_system["id"], station_ids=station_ids)
File "/usr/local/lib/python3.10/site-packages/googlewifi/__init__.py", line 612, in get_sensitive_info
operation_id = await self.start_retrieve_sensitive_info(
File "/usr/local/lib/python3.10/site-packages/googlewifi/__init__.py", line 590, in start_retrieve_sensitive_info
operation_id = response.get("operation",[]).get("operationId")
AttributeError: 'list' object has no attribute 'get'