mirror of
https://github.com/home-assistant/core.git
synced 2025-07-21 04:07:08 +00:00
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
This commit is contained in:
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…
x
Reference in New Issue
Block a user