Skip to content
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

'list' object has no attribute 'get' #87

Open
albinmedoc opened this issue Feb 23, 2023 · 0 comments
Open

'list' object has no attribute 'get' #87

albinmedoc opened this issue Feb 23, 2023 · 0 comments

Comments

@albinmedoc
Copy link

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'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant