9c603d932dfe77ae8b985f5918528b6cef6b4e99,homeassistant/components/alarm_control_panel/manual.py,ManualAlarm,state,#ManualAlarm#,90
Before Change
STATE_ALARM_ARMED_AWAY,
STATE_ALARM_ARMED_NIGHT) and \
self._pending_time and self._state_ts + self._pending_time > \
dt_util.utcnow():
return STATE_ALARM_PENDING
if self._state == STATE_ALARM_TRIGGERED and self._trigger_time:
if self._state_ts + self._pending_time > dt_util.utcnow():
After Change
if self._state == STATE_ALARM_TRIGGERED and self._trigger_time:
if self._within_pending_time(self._state):
return STATE_ALARM_PENDING
elif (self._state_ts + self._pending_time_by_state[self._state] +
self._trigger_time) < dt_util.utcnow():
if self._disarm_after_trigger:
return STATE_ALARM_DISARMED
In pattern: SUPERPATTERN
Frequency: 3
Non-data size: 3
Instances
Project Name: home-assistant/home-assistant
Commit Name: 9c603d932dfe77ae8b985f5918528b6cef6b4e99
Time: 2017-09-14
Author: snjoetw@gmail.com
File Name: homeassistant/components/alarm_control_panel/manual.py
Class Name: ManualAlarm
Method Name: state
Project Name: samuelclay/NewsBlur
Commit Name: 6e93972ada9577ce41af8681de3f8a080f45f418
Time: 2011-11-01
Author: samuel@ofbrooklyn.com
File Name: utils/munin/newsblur_errors.py
Class Name:
Method Name: calculate_metrics
Project Name: home-assistant/home-assistant
Commit Name: bbf6e9ea47b39f36d1c535c9640eea4e373b7c4b
Time: 2017-09-23
Author: snjoetw@gmail.com
File Name: homeassistant/components/alarm_control_panel/manual_mqtt.py
Class Name: ManualMQTTAlarm
Method Name: state