Lint roomba ()

pull/35003/head
Paulus Schoutsen 2020-04-30 22:27:34 -07:00 committed by GitHub
parent 8f9467492d
commit 03bb2a68b3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions
homeassistant/components/roomba

View File

@ -146,7 +146,7 @@ class IRobotVacuum(IRobotEntity, StateVacuumEntity):
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