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

Public Member Functions

None __post_init__ (self)
 
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.helpers.entity.EntityDescription
 bool
 
 None
 

Detailed Description

Base class for protect entity descriptions.

Definition at line 377 of file entity.py.

Member Function Documentation

◆ __post_init__()

None homeassistant.components.unifiprotect.entity.ProtectEntityDescription.__post_init__ (   self)
Override get_ufp_value, has_required, and get_ufp_enabled if required.

Reimplemented in homeassistant.components.unifiprotect.sensor.ProtectSensorEntityDescription, and homeassistant.components.unifiprotect.entity.ProtectEventMixin.

Definition at line 399 of file entity.py.

◆ get_ufp_value()

Any homeassistant.components.unifiprotect.entity.ProtectEntityDescription.get_ufp_value (   self,
T  obj 
)
Return value from UniFi Protect device; overridden in __post_init__.

Definition at line 390 of file entity.py.

Member Data Documentation

◆ None

homeassistant.components.unifiprotect.entity.ProtectEntityDescription.None
static

Definition at line 380 of file entity.py.


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