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


                    self._state = self._pre_trigger_state
                    return self._state

        if self._state in SUPPORTED_PENDING_STATES and \
                self._within_pending_time(self._state):
            return STATE_ALARM_PENDING
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 4

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: 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


Project Name: comic/grand-challenge.org
Commit Name: f8f5eb96468aa94acad1c085fc9a8c80d7b6db8f
Time: 2017-11-15
Author: pkcakeout@gmail.com
File Name: app/evaluation/widgets/uploader.py
Class Name: AjaxUploadWidget
Method Name: handle_ajax