Skip to content

Commit

Permalink
Rename Mopping to VacuumingAndMopping
Browse files Browse the repository at this point in the history
  • Loading branch information
rytilahti committed Aug 3, 2020
1 parent f7b03ce commit bb2e916
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions miio/viomivacuum.py
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ class ViomiVacuumState(Enum):
Cleaning = 3
Returning = 4
Docked = 5
Mopping = 6
VacuumingAndMopping = 6


class ViomiMode(Enum):
Expand Down Expand Up @@ -129,7 +129,10 @@ def state(self):
@property
def is_on(self) -> bool:
"""True if cleaning."""
cleaning_states = [ViomiVacuumState.Cleaning, ViomiVacuumState.Mopping]
cleaning_states = [
ViomiVacuumState.Cleaning,
ViomiVacuumState.VacuumingAndMopping,
]
return self.state in cleaning_states

@property
Expand Down

0 comments on commit bb2e916

Please sign in to comment.