Make Flake8 happy

This commit is contained in:
Paulus Schoutsen 2016-01-12 21:53:27 -08:00
parent 9a1aad8e92
commit 3b7b12bbd5
12 changed files with 60 additions and 47 deletions

View file

@ -68,7 +68,8 @@ class ManualAlarm(alarm.AlarmControlPanel):
@property
def state(self):
""" Returns the state of the device. """
if self._state in (STATE_ALARM_ARMED_HOME, STATE_ALARM_ARMED_AWAY) and \
if self._state in (STATE_ALARM_ARMED_HOME,
STATE_ALARM_ARMED_AWAY) and \
self._pending_time and self._state_ts + self._pending_time > \
dt_util.utcnow():
return STATE_ALARM_PENDING