geniushub: fix sensor battery level, and bump client (#24123)

* Initial commit

* bump client
This commit is contained in:
David Bonnes authored and Pascal Vizeli committed 2019-05-26 14:01:29 +02:00
1 parent afeb13d980
commit 96b7bb625d
3 files changed
+4 -3

No files matched your search

+2 -1
View File
@@ -76,7 +76,8 @@ class GeniusDevice(Entity):
@property
def state(self):
"""Return the state of the sensor."""
return self._device.state['batteryLevel']
level = self._device.state['batteryLevel']
return level if level != 255 else 0
@property
def device_state_attributes(self):