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_commadnpull/20784/head
parent
3de21d3fda
commit
208f1a4a47
|
@ -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."""
|
||||
|
|
Loading…
Reference in New Issue