geniushub: fix sensor battery level, and bump client (#24123)
* Initial commit * bump client
This commit is contained in:
1 parent
afeb13d980
commit
96b7bb625d
3 files changed
+4
-3
No files matched your search
@@ -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):
|
||||
|
||||
Reference in new issue
Block a user