Skip to content

Commit

Permalink
revert vacuum_status split
Browse files Browse the repository at this point in the history
  • Loading branch information
starkillerOG committed Oct 7, 2022
1 parent 9892442 commit a9ea661
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions miio/integrations/vacuum/roborock/vacuum.py
Original file line number Diff line number Diff line change
Expand Up @@ -403,16 +403,11 @@ def manual_control(
@command()
def status(self) -> VacuumStatus:
"""Return status of the vacuum."""
status = self.vacuum_status()
status = VacuumStatus(self.send("get_status")[0])
status.embed(self.consumable_status())
status.embed(self.clean_history())
return status

@command()
def vacuum_status(self) -> VacuumStatus:
"""Return status of the vacuum."""
return VacuumStatus(self.send("get_status")[0])

def enable_log_upload(self):
raise NotImplementedError("unknown parameters")
# return self.send("enable_log_upload")
Expand Down

0 comments on commit a9ea661

Please sign in to comment.