Closed WillCodeForCats closed 1 year ago
Thanks for this issue and the PR you sent to core, sent a reply so we'll keep this issue open until we get an answer from them there :+1:
Marked https://github.com/home-assistant/core/pull/96735 as ready, hopefully it will be accepted this time.
Closing because this was never a library bug and the PR is stuck facing constant delays in spite of my efforts to quickly address them.
Describe the bug Sometimes the airthings hardware does not include a given data point in a polling cycle with Home Assistant that it previously has, which causes a key not to be populated and raises an uncaught exception within in Home Assistant. It's relatively uncommon and does not persist long, but it does happen.
To Reproduce Steps to reproduce the behavior:
1) Let an Airthings BLE device run and observe it until it randomly happens.
Additional context Claimed to be a library bug although I don't really think it is, and I believe it could be handled gracefully (and trivially) within HA by a simple try/except when returning native_value for the sensor.
Ref: https://github.com/home-assistant/core/pull/96735
Logs: