9bc26e93a4340b4a4e2eb35f4732a6b60d435f43,homeassistant/components/alarm_control_panel/manual_mqtt.py,ManualMQTTAlarm,code_format,#ManualMQTTAlarm#,239

Before Change


    @property
    def code_format(self):
        Return one or more characters.
        return None if self._code is None else ".+"

    def alarm_disarm(self, code=None):
        Send disarm command.
        if not self._validate_code(code, STATE_ALARM_DISARMED):

After Change


    @property
    def code_format(self):
        Return one or more digits/characters.
        if self._code is None:
            return None
        elif isinstance(self._code, str) and re.search("^\\d+$", self._code):
            return "^\\d+$"
        return ".+"

    def alarm_disarm(self, code=None):
        Send disarm command.
        if not self._validate_code(code, STATE_ALARM_DISARMED):
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 14

Instances


Project Name: home-assistant/home-assistant
Commit Name: 9bc26e93a4340b4a4e2eb35f4732a6b60d435f43
Time: 2018-05-28
Author: robert@accettura.com
File Name: homeassistant/components/alarm_control_panel/manual_mqtt.py
Class Name: ManualMQTTAlarm
Method Name: code_format


Project Name: home-assistant/home-assistant
Commit Name: 9bc26e93a4340b4a4e2eb35f4732a6b60d435f43
Time: 2018-05-28
Author: robert@accettura.com
File Name: homeassistant/components/alarm_control_panel/manual.py
Class Name: ManualAlarm
Method Name: code_format


Project Name: home-assistant/home-assistant
Commit Name: 9bc26e93a4340b4a4e2eb35f4732a6b60d435f43
Time: 2018-05-28
Author: robert@accettura.com
File Name: homeassistant/components/alarm_control_panel/simplisafe.py
Class Name: SimpliSafeAlarm
Method Name: code_format


Project Name: home-assistant/home-assistant
Commit Name: 9bc26e93a4340b4a4e2eb35f4732a6b60d435f43
Time: 2018-05-28
Author: robert@accettura.com
File Name: homeassistant/components/alarm_control_panel/manual_mqtt.py
Class Name: ManualMQTTAlarm
Method Name: code_format