Fix unavailable when value is zero (#37918)

This commit is contained in:
cgtobi authored and Paulus Schoutsen committed 2020-07-17 00:51:36 +00:00
1 parent c0302e6eca
commit 98347345d1
1 file changed
+1 -1
+1 -1
View File
@@ -555,7 +555,7 @@ class NetatmoPublicSensor(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."""