kingsleyadam / local-abbfreeathome-hass

This is the Home Assistant custom_components (HACS) repository for Busch Jaeger/ABB Free@Home (Local API)
MIT License
3 stars 2 forks source link

Only add a new sensor if it has a value other than None #28

Closed kingsleyadam closed 2 days ago

kingsleyadam commented 2 days ago

This addresses #27 , only add a sensor if there's a value. Some devices may not have all the same sensors, so we should only add a new sensor if it has a value other than None.

New version of the PyPi package ensures all sensors have an initial value of None to avoid any attribute exceptions.