mirror of
https://github.com/home-assistant/core.git
synced 2025-07-19 19:27:45 +00:00
Fix roomba error if battery stats are not available (#103196)
This commit is contained in:
parent
135944b6f0
commit
f05d2eb261
@ -115,7 +115,7 @@ class IRobotEntity(Entity):
|
|||||||
@property
|
@property
|
||||||
def battery_stats(self):
|
def battery_stats(self):
|
||||||
"""Return the battery stats."""
|
"""Return the battery stats."""
|
||||||
return self.vacuum_state.get("bbchg3")
|
return self.vacuum_state.get("bbchg3", {})
|
||||||
|
|
||||||
@property
|
@property
|
||||||
def _robot_state(self):
|
def _robot_state(self):
|
||||||
|
Loading…
x
Reference in New Issue
Block a user