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

Unexpected error fetching FoxESS data: 'addressbook' #178

Open
guba91 opened this issue May 24, 2023 · 0 comments
Open

Unexpected error fetching FoxESS data: 'addressbook' #178

guba91 opened this issue May 24, 2023 · 0 comments
Labels
bug Something isn't working

Comments

@guba91
Copy link
Contributor

guba91 commented May 24, 2023

HA 2023.5.3
foxess-ha version: v0.26

Logger: custom_components.foxess.sensor
Source: custom_components/foxess/sensor.py:144
Integration: foxess (documentation, issues)
First occurred: 23 maggio 2023 alle ore 16:38:15 (2 occurrences)
Last logged: 23 maggio 2023 alle ore 16:53:25

Unexpected error fetching FoxESS data: 'addressbook'
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/helpers/update_coordinator.py", line 258, in _async_refresh
self.data = await self._async_update_data()
File "/usr/src/homeassistant/homeassistant/helpers/update_coordinator.py", line 217, in _async_update_data
return await self.update_method()
File "/config/custom_components/foxess/sensor.py", line 144, in async_update_data
if int(allData["addressbook"]["result"]["status"]) == 1 or int(allData["addressbook"]["result"]["status"]) == 2 or int(allData["addressbook"]["result"]["status"]) == 3:
KeyError: 'addressbook'

@guba91 guba91 added the bug Something isn't working label May 24, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant