Home Assistant Unofficial Reference 2024.12.1
homeassistant.components.unifiprotect.entity.ProtectEventMixin Class Reference
Inheritance diagram for homeassistant.components.unifiprotect.entity.ProtectEventMixin:
[legend]
Collaboration diagram for homeassistant.components.unifiprotect.entity.ProtectEventMixin:
[legend]

Public Member Functions

None __post_init__ (self)
 
Event|None get_event_obj (self, T obj)
 
bool has_matching_smart (self, Event event)
 
- Public Member Functions inherited from homeassistant.components.unifiprotect.entity.ProtectEntityDescription
Any get_ufp_value (self, T obj)
 
- Public Member Functions inherited from homeassistant.util.frozen_dataclass_compat.FrozenOrThawed
None __init__ (cls, str name, tuple[type,...] bases, dict[Any, Any] namespace, **Any kwargs)
 
Any __new__ (mcs, str name, tuple[type,...] bases, dict[Any, Any] namespace, bool frozen_or_thawed=False, **Any kwargs)
 

Static Public Attributes

 None
 
- Static Public Attributes inherited from homeassistant.components.unifiprotect.entity.ProtectEntityDescription
 None
 
- Static Public Attributes inherited from homeassistant.helpers.entity.EntityDescription
 bool
 
 None
 

Detailed Description

Mixin for events.

Definition at line 416 of file entity.py.

Member Function Documentation

◆ __post_init__()

None homeassistant.components.unifiprotect.entity.ProtectEventMixin.__post_init__ (   self)
Override get_event_obj if ufp_event_obj is set.

Reimplemented from homeassistant.components.unifiprotect.entity.ProtectEntityDescription.

Definition at line 432 of file entity.py.

◆ get_event_obj()

Event | None homeassistant.components.unifiprotect.entity.ProtectEventMixin.get_event_obj (   self,
T  obj 
)
Return value from UniFi Protect device.

Definition at line 422 of file entity.py.

◆ has_matching_smart()

bool homeassistant.components.unifiprotect.entity.ProtectEventMixin.has_matching_smart (   self,
Event  event 
)
Determine if the detection type is a match.

Definition at line 426 of file entity.py.

Member Data Documentation

◆ None

homeassistant.components.unifiprotect.entity.ProtectEventMixin.None
static

Definition at line 419 of file entity.py.


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