Allow pausing xiaomi vacuum in all states (#20620)

* fix state update when no cleaning is yet performed
allow pause vacuum when returning to base

* revert checking of atttribute updates. Will be fixed in upstream lib.

* remove unnecesarry if on pause_commadn
pull/20784/head
Pawel 2019-02-06 13:04:01 +01:00 committed by Martin Hjelmare
parent 3de21d3fda
commit 208f1a4a47
1 changed files with 2 additions and 3 deletions

View File

@ -287,9 +287,8 @@ class MiroboVacuum(StateVacuumDevice):
async def async_pause(self):
"""Pause the cleaning task."""
if self.state == STATE_CLEANING:
await self._try_command(
"Unable to set start/pause: %s", self._vacuum.pause)
await self._try_command(
"Unable to set start/pause: %s", self._vacuum.pause)
async def async_stop(self, **kwargs):
"""Stop the vacuum cleaner."""