Skip to content

Commit

Permalink
Inverse SKIP_PAUSE to PAUSE_BEFORE_HOME
Browse files Browse the repository at this point in the history
  • Loading branch information
whig0 committed May 20, 2021
1 parent ef66c12 commit 812df21
Showing 1 changed file with 3 additions and 6 deletions.
9 changes: 3 additions & 6 deletions miio/vacuum.py
Original file line number Diff line number Diff line change
Expand Up @@ -174,14 +174,11 @@ def home(self):
if self.model is None:
self._autodetect_model()

SKIP_PAUSE = [
ROCKROBO_S5,
ROCKROBO_S6,
ROCKROBO_S6_MAXV,
ROCKROBO_S7,
PAUSE_BEFORE_HOME = [
ROCKROBO_V1,
]

if self.model not in SKIP_PAUSE:
if self.model in PAUSE_BEFORE_HOME:
self.send("app_pause")

return self.send("app_charge")
Expand Down

0 comments on commit 812df21

Please sign in to comment.