Fix roomba 980 position report (#35316)

This commit is contained in:
Xiaonan Shen authored and Paulus Schoutsen committed 2020-05-07 10:32:56 -07:00
1 parent 00501019b4
commit 39fefa49cc
4 files changed
+20 -2

No files matched your search

@@ -45,3 +45,7 @@ class RoombaBinStatus(IRobotEntity, BinarySensorDevice):
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