716376081ddcc386367a64f0f6b9dde8e3aff0ed,homeassistant/components/alarm_control_panel/mqtt.py,MqttAlarm,alarm_arm_home,#MqttAlarm#Any#,102

Before Change



    def alarm_arm_home(self, code=None):
         Send arm home command. 
        if code == str(self._code) or self.code_format is None:
            mqtt.publish(self.hass, self._command_topic,
                         self._payload_arm_home, self._qos)
        else:
            _LOGGER.warning("Wrong code entered while arming home!")

    def alarm_arm_away(self, code=None):
         Send arm away command. 
        if code == str(self._code) or self.code_format is None:
            mqtt.publish(self.hass, self._command_topic,

After Change



    def alarm_arm_home(self, code=None):
         Send arm home command. 
        if not self._validate_code(code, "arming home"):
            return
        mqtt.publish(self.hass, self._command_topic,
                     self._payload_arm_home, self._qos)

    def alarm_arm_away(self, code=None):
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 13

Instances


Project Name: home-assistant/home-assistant
Commit Name: 716376081ddcc386367a64f0f6b9dde8e3aff0ed
Time: 2015-10-13
Author: paulus@paulusschoutsen.nl
File Name: homeassistant/components/alarm_control_panel/mqtt.py
Class Name: MqttAlarm
Method Name: alarm_arm_home


Project Name: home-assistant/home-assistant
Commit Name: 716376081ddcc386367a64f0f6b9dde8e3aff0ed
Time: 2015-10-13
Author: paulus@paulusschoutsen.nl
File Name: homeassistant/components/alarm_control_panel/mqtt.py
Class Name: MqttAlarm
Method Name: alarm_disarm


Project Name: home-assistant/home-assistant
Commit Name: 716376081ddcc386367a64f0f6b9dde8e3aff0ed
Time: 2015-10-13
Author: paulus@paulusschoutsen.nl
File Name: homeassistant/components/alarm_control_panel/mqtt.py
Class Name: MqttAlarm
Method Name: alarm_arm_away