Airthings / airthings-ble

Library to control Airthings devices through BLE, primarily meant to be used in Home Assistant.
MIT License
21 stars 11 forks source link

Fix unknown radon level if numeric value is 0 #17

Closed rsiv closed 1 year ago

rsiv commented 1 year ago

radon_1day_level was not set if numeric radon_1day_avg sensor was exactly 0 and evaluated to false

also fixed other sensors to make an explicit check

rsiv commented 1 year ago

Thanks for confirming! Couldn't figure out why the level sensor was so unstable. It was happening intermittently so had to debug while it was still zero to catch it.