Fix roomba 980 position report (#35316)

This commit is contained in:
Xiaonan Shen authored and GitHub committed 2020-05-07 10:04:13 -07:00
1 parent a38bb5b33b
commit 9d5704307a
4 files changed
+20 -2

No files matched your search

@@ -45,3 +45,7 @@ class RoombaBinStatus(IRobotEntity, BinarySensorEntity):
def state(self):
"""Return the state of the sensor."""
return roomba_reported_state(self.vacuum).get("bin", {}).get("full", False)
def new_state_filter(self, new_state):
"""Filter the new state."""
return "bin" in new_state