-
Notifications
You must be signed in to change notification settings - Fork 12
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
Error on device update #37
Comments
Could you @bakboord4 send me your station ID, because I cannot to reproduce it in my HA - I also use Home assistant: 2023.3.0 and World air quality index: V1.0.0. |
Configured two stations.
Please see two attachments for the requested station information.

… Op 2 mrt. 2023, om 20:20 heeft pawkakol1 ***@***.***> het volgende geschreven:
Could you @bakboord4 <https://github.com/bakboord4> send me your station ID, because I cannot to reproduce it in my HA - I also use Home assistant: 2023.3.0 and World air quality index: V1.0.0.
—
Reply to this email directly, view it on GitHub <#37 (comment)>, or unsubscribe <https://github.com/notifications/unsubscribe-auth/AKFSM2GKSDN627NRLTXE4ETW2DXJLANCNFSM6AAAAAAVNK5JVQ>.
You are receiving this because you were mentioned.
|
@bakboord4 unfortunately your attachments are just [obj] [obj] I can't see them |
I think, I found the solution for you, but I can't to verify it, because my stations work without this fix. |
station ID’s:
1. IDx: 7937 Version 0.3.7 by pawkakol1
2. IDx: A205348 Version 0.3.5 by pawkakol0
Copied your forecast branch and restarted HA
Startup gave one error:
Station kraanvogellaan doesn't support forecast
Kraanvogellaan is station IDx nr. 2 and now on Version 0.3.7!
Will continue to test and will let you know the outcome.
… Op 2 mrt. 2023, om 21:18 heeft pawkakol1 ***@***.***> het volgende geschreven:
I think, I found the solution for you, but I can't to verify it, because my stations work without this fix.
The fixed code is available in "bugFix/forecast" branch:
https://github.com/pawkakol1/worlds-air-quality-index/tree/bugFix/forecast
—
Reply to this email directly, view it on GitHub <#37 (comment)>, or unsubscribe <https://github.com/notifications/unsubscribe-auth/AKFSM2FW2OPWNKZ4C2BQG7DW2D6CJANCNFSM6AAAAAAVNK5JVQ>.
You are receiving this because you were mentioned.
|
In my last mail about applying your fix, I reported an error at startup.
That is incorrect; it was a warning.
… Op 2 mrt. 2023, om 21:18 heeft pawkakol1 ***@***.***> het volgende geschreven:
I think, I found the solution for you, but I can't to verify it, because my stations work without this fix.
The fixed code is available in "bugFix/forecast" branch:
https://github.com/pawkakol1/worlds-air-quality-index/tree/bugFix/forecast
—
Reply to this email directly, view it on GitHub <#37 (comment)>, or unsubscribe <https://github.com/notifications/unsubscribe-auth/AKFSM2FW2OPWNKZ4C2BQG7DW2D6CJANCNFSM6AAAAAAVNK5JVQ>.
You are receiving this because you were mentioned.
|
Yeah, I added verification if API contains forecast. But I will change it from warning to info level today's evening, then I will test it in Docker with your station ID. Then propably I will release fixed version |
Perfect!
… Op 3 mrt. 2023, om 09:27 heeft pawkakol1 ***@***.***> het volgende geschreven:
Yeah, I added verification if API contains forecast.
If it contains, then forecast is read, and saved in sensors
If API doesn't contain forecast I log warning f"Station {name} doesn't support forecast"
But I will change it from warning to info level today's evening, then I will test it in Docker with your station ID. Then propably I will release fixed version
—
Reply to this email directly, view it on GitHub <#37 (comment)>, or unsubscribe <https://github.com/notifications/unsubscribe-auth/AKFSM2FQJA43KSSLKQNPN7DW2GTPDANCNFSM6AAAAAAVNK5JVQ>.
You are receiving this because you were mentioned.
|
I tested the bug fix with your stations, and it works proper now |
thanks for the quick response and your efforts you have put in to solve this issue.
… Op 3 mrt. 2023, om 19:59 heeft pawkakol1 ***@***.***> het volgende geschreven:
Closed #37 <#37> as completed.
—
Reply to this email directly, view it on GitHub <#37 (comment)>, or unsubscribe <https://github.com/notifications/unsubscribe-auth/AKFSM2AOOWOEE4OJOVBZFYDW2I5QXANCNFSM6AAAAAAVNK5JVQ>.
You are receiving this because you were mentioned.
|
Please find below 3 error loggings of presumably the same issue.
Home assistant: 2023.3.0
World air quality index: V1.0.0.
2023-03-01 23:03:09.555 ERROR (MainThread) [homeassistant.components.sensor] worlds_air_quality_index: Error on device update!
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/helpers/entity_platform.py", line 507, in _async_add_entity
await entity.async_device_update(warning=False)
File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 732, in async_device_update
await task
File "/usr/local/lib/python3.10/concurrent/futures/thread.py", line 58, in run
result = self.fn(*self.args, **self.kwargs)
File "/config/custom_components/worlds_air_quality_index/sensor.py", line 214, in update
if self._resType in self._data['data']['forecast']['daily']:
KeyError: 'forecast'
2023-03-01 23:03:09.644 ERROR (MainThread) [homeassistant.components.sensor] worlds_air_quality_index: Error on device update!
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/helpers/entity_platform.py", line 507, in _async_add_entity
await entity.async_device_update(warning=False)
File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 732, in async_device_update
await task
File "/usr/local/lib/python3.10/concurrent/futures/thread.py", line 58, in run
result = self.fn(*self.args, **self.kwargs)
File "/config/custom_components/worlds_air_quality_index/sensor.py", line 214, in update
if self._resType in self._data['data']['forecast']['daily']:
KeyError: 'forecast'
2023-03-01 23:03:09.736 ERROR (MainThread) [homeassistant.components.sensor] worlds_air_quality_index: Error on device update!
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/helpers/entity_platform.py", line 507, in _async_add_entity
await entity.async_device_update(warning=False)
File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 732, in async_device_update
await task
File "/usr/local/lib/python3.10/concurrent/futures/thread.py", line 58, in run
result = self.fn(*self.args, **self.kwargs)
File "/config/custom_components/worlds_air_quality_index/sensor.py", line 214, in update
if self._resType in self._data['data']['forecast']['daily']:
KeyError: 'forecast'
The text was updated successfully, but these errors were encountered: