Fix unavailable when value is zero (#37918)

This commit is contained in:
cgtobi 2020-07-17 00:28:49 +02:00 committed by GitHub
parent 33dc015083
commit baa7bb69b3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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."""