32bb950b5f4e0cac647353c2b4a7940f908fc73f,homeassistant/components/alarm_control_panel/manual.py,ManualAlarm,alarm_trigger,#ManualAlarm#Any#,121
Before Change
track_point_in_time(
self._hass, delayed_alarm_disarm,
dt_util.utcnow() + self._trigger_time)
track_point_in_time(
self._hass, delayed_alarm_trigger,
dt_util.utcnow() + self._pending_time)
After Change
def alarm_trigger(self, code=None):
Send alarm trigger command. No code needed.
self._state = STATE_ALARM_TRIGGERED
self._state_ts = dt_util.utcnow()
self.update_ha_state()
if self._trigger_time:
track_point_in_time(
self._hass, self.update_ha_state,
self._state_ts + self._trigger_time)
def _validate_code(self, code, state):
Validate given code.
check = self._code is None or code == self._code
if not check:
In pattern: SUPERPATTERN
Frequency: 3
Non-data size: 9
Instances
Project Name: home-assistant/home-assistant
Commit Name: 32bb950b5f4e0cac647353c2b4a7940f908fc73f
Time: 2015-10-13
Author: paulus@paulusschoutsen.nl
File Name: homeassistant/components/alarm_control_panel/manual.py
Class Name: ManualAlarm
Method Name: alarm_trigger
Project Name: home-assistant/home-assistant
Commit Name: 32bb950b5f4e0cac647353c2b4a7940f908fc73f
Time: 2015-10-13
Author: paulus@paulusschoutsen.nl
File Name: homeassistant/components/alarm_control_panel/manual.py
Class Name: ManualAlarm
Method Name: alarm_arm_home
Project Name: home-assistant/home-assistant
Commit Name: 32bb950b5f4e0cac647353c2b4a7940f908fc73f
Time: 2015-10-13
Author: paulus@paulusschoutsen.nl
File Name: homeassistant/components/alarm_control_panel/manual.py
Class Name: ManualAlarm
Method Name: alarm_arm_away