def __init__(self, zone_number, zone_name, zone_type, info, controller): """Initialize the binary_sensor.""" from pydispatch import dispatcher self._zone_type = zone_type self._zone_number = zone_number _LOGGER.debug('Setting up zone: ' + zone_name) EnvisalinkDevice.__init__(self, zone_name, info, controller) dispatcher.connect(self._update_callback, signal=SIGNAL_ZONE_UPDATE, sender=dispatcher.Any)
def __init__(self, partition_name, partition_number, info, controller): """Initialize the sensor.""" from pydispatch import dispatcher self._icon = 'mdi:alarm' self._partition_number = partition_number _LOGGER.debug('Setting up sensor for partition: ' + partition_name) EnvisalinkDevice.__init__(self, partition_name + ' Keypad', info, controller) dispatcher.connect(self._update_callback, signal=SIGNAL_KEYPAD_UPDATE, sender=dispatcher.Any)
def __init__(self, partition_number, alarm_name, code, info, controller): """Initialize the alarm panel.""" from pydispatch import dispatcher self._partition_number = partition_number self._code = code _LOGGER.debug('Setting up alarm: ' + alarm_name) EnvisalinkDevice.__init__(self, alarm_name, info, controller) dispatcher.connect(self._update_callback, signal=SIGNAL_PARTITION_UPDATE, sender=dispatcher.Any) dispatcher.connect(self._update_callback, signal=SIGNAL_KEYPAD_UPDATE, sender=dispatcher.Any)