Fix zero value state rendering sensor unavailable (#34694)

Co-Authored-By: Franck Nijhof <git@frenck.dev>
This commit is contained in:
cgtobiandFranck Nijhof authored and Paulus Schoutsen committed 2020-04-25 17:30:46 -07:00
1 parent 9def9464e9
commit 7fa3950001
1 file changed
+1 -1
+1 -1
View File
@@ -223,7 +223,7 @@ class NetatmoSensor(Entity):
@property
def available(self):
"""Return True if entity is available."""
return bool(self._state)
return self._state is not None
def update(self):
"""Get the latest data from Netatmo API and updates the states."""