def __init__(self, vera_device: veraApi.VeraLock, controller_data: ControllerData) -> None: """Initialize the Vera device.""" self._state: str | None = None self._cmd_status: str | None = None VeraDevice.__init__(self, vera_device, controller_data) self.entity_id = ENTITY_ID_FORMAT.format(self.vera_id)
def __init__(self, hass, device, endpoint): """Initialize the ZiGate lock.""" self._device = device self._endpoint = endpoint self._is_locked = 2 a = self._device.get_attribute(endpoint, 0x0101, 0) if a: self._lock_state = a.get('value', 2) ieee = device.ieee or device.addr # compatibility entity_id = 'zigate_{}_{}'.format(ieee, endpoint) self.entity_id = ENTITY_ID_FORMAT.format(entity_id) hass.bus.listen('zigate.attribute_updated', self._handle_event)
def __init__(self, tesla_device, controller): """Initialise of the lock.""" self._state = None super().__init__(tesla_device, controller) self.entity_id = ENTITY_ID_FORMAT.format(self.tesla_id)
def __init__(self, vera_device, controller): """Initialize the Vera device.""" self._state = None VeraDevice.__init__(self, vera_device, controller) self.entity_id = ENTITY_ID_FORMAT.format(self.vera_id)
def __init__(self, fibaro_device): """Initialize the Fibaro device.""" self._state = False super().__init__(fibaro_device) self.entity_id = ENTITY_ID_FORMAT.format(self.ha_id)
def __init__(self, vera_device, controller): """Initialize the Vera device.""" self._state = None VeraDevice.__init__(self, vera_device, controller) self.entity_id = ENTITY_ID_FORMAT.format(self.vera_id)
def __init__(self, fibaro_device: DeviceModel | SceneModel) -> None: """Initialize the Fibaro device.""" super().__init__(fibaro_device) self.entity_id = ENTITY_ID_FORMAT.format(self.ha_id)