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