Fix roomba error if battery stats are not available (#103196)

This commit is contained in:
Xitee
2023-11-01 21:12:57 +01:00
committed by Franck Nijhof
parent 5b4df0f7ff
commit 2be229c5b5

View File

@@ -119,7 +119,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):