Home Assistant Unofficial Reference 2024.12.1
homeassistant.components.deconz.deconz_event.DeconzEventBase Class Reference
Inheritance diagram for homeassistant.components.deconz.deconz_event.DeconzEventBase:
[legend]
Collaboration diagram for homeassistant.components.deconz.deconz_event.DeconzEventBase:
[legend]

Public Member Functions

None __init__ (self, AncillaryControl|Presence|RelativeRotary|Switch device, DeconzHub hub)
 
None async_update_callback (self)
 
None async_update_device_registry (self)
 
None async_will_remove_from_hass (self)
 

Public Attributes

 device
 
 device_id
 
 event_id
 

Private Attributes

 _unsubscribe
 

Detailed Description

When you want signals instead of entities.

Stateless sensors such as remotes are expected to generate an event
instead of a sensor entity in hass.

Definition at line 116 of file deconz_event.py.

Constructor & Destructor Documentation

◆ __init__()

None homeassistant.components.deconz.deconz_event.DeconzEventBase.__init__ (   self,
AncillaryControl | Presence | RelativeRotary | Switch  device,
DeconzHub  hub 
)
Register callback that will be used for signals.

Definition at line 123 of file deconz_event.py.

Member Function Documentation

◆ async_update_callback()

None homeassistant.components.deconz.deconz_event.DeconzEventBase.async_update_callback (   self)

◆ async_update_device_registry()

None homeassistant.components.deconz.deconz_event.DeconzEventBase.async_update_device_registry (   self)
Update device registry.

Definition at line 148 of file deconz_event.py.

◆ async_will_remove_from_hass()

None homeassistant.components.deconz.deconz_event.DeconzEventBase.async_will_remove_from_hass (   self)
Disconnect event object when removed.

Definition at line 139 of file deconz_event.py.

Member Data Documentation

◆ _unsubscribe

homeassistant.components.deconz.deconz_event.DeconzEventBase._unsubscribe
private

Definition at line 131 of file deconz_event.py.

◆ device

homeassistant.components.deconz.deconz_event.DeconzEventBase.device

Definition at line 133 of file deconz_event.py.

◆ device_id

homeassistant.components.deconz.deconz_event.DeconzEventBase.device_id

Definition at line 158 of file deconz_event.py.

◆ event_id

homeassistant.components.deconz.deconz_event.DeconzEventBase.event_id

Definition at line 135 of file deconz_event.py.


The documentation for this class was generated from the following file: