mrk-its / homeassistant-blitzortung

Custom Component for fetching lightning data from blitzortung.org
MIT License
200 stars 39 forks source link

Unknown distance and azimuth #30

Closed larronni closed 2 years ago

larronni commented 3 years ago

If there has been no lightning today, both distance and azimuth comes up with state "unknown". Can it be changed to 0 instead ?

MarkusFelix commented 2 years ago

Yes please - currently I need to convert the value via a template sensor just so re-write unknown to 0, which seems silly to me.

mrk-its commented 2 years ago

IMHO unknown is better than 0 in such cache (it simply means that there is no lightning while 0 is valid value for distance / azimuth). Closing.