Skip to content

Commit

Permalink
fix types, fix reset_all_filters(), comments
Browse files Browse the repository at this point in the history
  • Loading branch information
ofen committed Nov 15, 2021
1 parent 329722a commit a9987b4
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions miio/integrations/petwaterdispenser/device.py
Original file line number Diff line number Diff line change
Expand Up @@ -105,27 +105,27 @@ def set_mode(self, mode: OperatingMode) -> List[Dict[str, Any]]:
return self.set_property("mode", mode.value)

@command(default_output=format_output("Resetting sponge filter"))
def reset_sponge_filter(self) -> List[Dict[str, Any]]:
def reset_sponge_filter(self) -> Dict[str, Any]:
"""Reset sponge filter."""
return self.call_action("reset_filter_life")

@command(default_output=format_output("Resetting cotton filter"))
def reset_cotton_filter(self) -> List[Dict[str, Any]]:
def reset_cotton_filter(self) -> Dict[str, Any]:
"""Reset cotton filter."""
return self.call_action("reset_cotton_life")

@command(default_output=format_output("Resetting all filters"))
def reset_all_filters(self) -> List[Dict[str, Any]]:
"""Reset all filters."""
return self.reset_sponge_filter() + self.reset_cotton_filter()
"""Reset all filters [cotton, sponge]."""
return [self.reset_cotton_filter(), self.reset_sponge_filter()]

@command(default_output=format_output("Resetting cleaning time"))
def reset_cleaning_time(self) -> List[Dict[str, Any]]:
def reset_cleaning_time(self) -> Dict[str, Any]:
"""Reset cleaning time counter."""
return self.call_action("reset_clean_time")

@command(default_output=format_output("Resetting device"))
def reset(self) -> List[Dict[str, Any]]:
def reset(self) -> Dict[str, Any]:
"""Reset device."""
return self.call_action("reset_device")

Expand Down

0 comments on commit a9987b4

Please sign in to comment.