From 03bb2a68b3ec42d3b5198ee07f8ab535defa394e Mon Sep 17 00:00:00 2001 From: Paulus Schoutsen Date: Thu, 30 Apr 2020 22:27:34 -0700 Subject: [PATCH] Lint roomba (#35000) --- homeassistant/components/roomba/irobot_base.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/homeassistant/components/roomba/irobot_base.py b/homeassistant/components/roomba/irobot_base.py index 86e9b0da6b5..6c35582c2c2 100644 --- a/homeassistant/components/roomba/irobot_base.py +++ b/homeassistant/components/roomba/irobot_base.py @@ -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