Beispiel #1
0
 def sensor_dirty(self) -> timedelta:
     """Return ``sensor_dirty_time``"""
     return pretty_seconds(self.data["sensor_dirty_time"])
Beispiel #2
0
 def side_brush(self) -> timedelta:
     """Side brush usage time."""
     return pretty_seconds(self.data["side_brush_work_time"])
Beispiel #3
0
 def filter(self) -> timedelta:
     """Filter usage time."""
     return pretty_seconds(self.data["filter_work_time"])
Beispiel #4
0
 def main_brush(self) -> timedelta:
     """Main brush usage time."""
     return pretty_seconds(self.data["main_brush_work_time"])
Beispiel #5
0
 def duration(self) -> timedelta:
     """Total duration of the cleaning run."""
     return pretty_seconds(self.data["duration"])
Beispiel #6
0
 def total_duration(self) -> timedelta:
     """Total cleaning duration."""
     return pretty_seconds(self.data["clean_time"])
Beispiel #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"])
Beispiel #8
0
 def clean_time(self) -> timedelta:
     """Cleaning time."""
     return pretty_seconds(self.data["s_time"] * 60)