58826b264a37ecfc4e041dcd78ead2bc2a9e5f34,homeassistant/components/lock/zwave.py,ZwaveLock,update_properties,#ZwaveLock#,221

Before Change


                                  str(notification_data),
                                  self.state)

        if not self.values.alarm_type:
            return

        alarm_type = self.values.alarm_type.data
        _LOGGER.debug("Lock alarm_type is %s", str(alarm_type))
        if self.values.alarm_level:
            alarm_level = self.values.alarm_level.data
        else:
            alarm_level = None
        _LOGGER.debug("Lock alarm_level is %s", str(alarm_level))

After Change


                                    .COMMAND_CLASS_ALARM,
                                    label=["Alarm Type"], member="data")
        _LOGGER.debug("Lock alarm_type is %s", str(alarm_type))
        alarm_level = self.get_value(class_id=zwave.const
                                     .COMMAND_CLASS_ALARM,
                                     label=["Alarm Level"], member="data")
        _LOGGER.debug("Lock alarm_level is %s", str(alarm_level))
        if not alarm_type:
            return
        if alarm_type is 21:
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 8

Instances


Project Name: home-assistant/home-assistant
Commit Name: 58826b264a37ecfc4e041dcd78ead2bc2a9e5f34
Time: 2017-03-12
Author: paulus@paulusschoutsen.nl
File Name: homeassistant/components/lock/zwave.py
Class Name: ZwaveLock
Method Name: update_properties


Project Name: home-assistant/home-assistant
Commit Name: 58826b264a37ecfc4e041dcd78ead2bc2a9e5f34
Time: 2017-03-12
Author: paulus@paulusschoutsen.nl
File Name: homeassistant/components/cover/zwave.py
Class Name: ZwaveRollershutter
Method Name: update_properties


Project Name: home-assistant/home-assistant
Commit Name: 298575f7cbb6efef6c80af54a95faaf8cf9fe4c0
Time: 2017-02-09
Author: turbokongen@hotmail.com
File Name: homeassistant/components/cover/zwave.py
Class Name: ZwaveRollershutter
Method Name: update_properties