mirror of
https://github.com/home-assistant/core.git
synced 2025-08-01 09:38:21 +00:00
Lint roomba (#35000)
This commit is contained in:
parent
bc9125666f
commit
af5cdc1f65
@ -146,7 +146,7 @@ class IRobotVacuum(IRobotEntity, StateVacuumDevice):
|
||||
state = STATE_MAP[phase]
|
||||
except KeyError:
|
||||
return STATE_ERROR
|
||||
if cycle != "none" and (state == STATE_IDLE or state == STATE_DOCKED):
|
||||
if cycle != "none" and state in (STATE_IDLE, STATE_DOCKED):
|
||||
state = STATE_PAUSED
|
||||
return state
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user