예제 #1
0
 def sensor_dirty(self) -> timedelta:
     """Return ``sensor_dirty_time``"""
     return pretty_seconds(self.data["sensor_dirty_time"])
예제 #2
0
 def side_brush(self) -> timedelta:
     """Side brush usage time."""
     return pretty_seconds(self.data["side_brush_work_time"])
예제 #3
0
 def filter(self) -> timedelta:
     """Filter usage time."""
     return pretty_seconds(self.data["filter_work_time"])
예제 #4
0
 def main_brush(self) -> timedelta:
     """Main brush usage time."""
     return pretty_seconds(self.data["main_brush_work_time"])
예제 #5
0
 def duration(self) -> timedelta:
     """Total duration of the cleaning run."""
     return pretty_seconds(self.data["duration"])
예제 #6
0
 def total_duration(self) -> timedelta:
     """Total cleaning duration."""
     return pretty_seconds(self.data["clean_time"])
예제 #7
0
 def clean_time(self) -> timedelta:
     """Time used for cleaning (if finished, shows how long it took)."""
     return pretty_seconds(self.data["clean_time"])
예제 #8
0
 def clean_time(self) -> timedelta:
     """Cleaning time."""
     return pretty_seconds(self.data["s_time"] * 60)