Home Assistant Unofficial Reference 2024.12.1
homeassistant.components.vera.entity Namespace Reference

Classes

class  VeraEntity
 

Functions

None __init__ (self, _DeviceTypeT vera_device, ControllerData controller_data)
 
None _update_callback (self, _DeviceTypeT _device)
 
None async_added_to_hass (self)
 
def available (self)
 
dict[str, Any]|None extra_state_attributes (self)
 
str name (self)
 
str unique_id (self)
 
def update (self)
 

Variables

 _LOGGER = logging.getLogger(__name__)
 
 _name
 
 _unique_id
 
 controller
 
 vera_device
 
 vera_id
 

Detailed Description

Support for Vera devices.

Function Documentation

◆ __init__()

None homeassistant.components.vera.entity.__init__ (   self,
_DeviceTypeT  vera_device,
ControllerData   controller_data 
)
Representation of a Vera device entity.
Initialize the device.

Definition at line 29 of file entity.py.

◆ _update_callback()

None homeassistant.components.vera.entity._update_callback (   self,
_DeviceTypeT  _device 
)
private
Update the state.

Definition at line 51 of file entity.py.

◆ async_added_to_hass()

None homeassistant.components.vera.entity.async_added_to_hass (   self)
Subscribe to updates.

Definition at line 47 of file entity.py.

◆ available()

def homeassistant.components.vera.entity.available (   self)
If device communications have failed return false.

Definition at line 93 of file entity.py.

◆ extra_state_attributes()

dict[str, Any] | None homeassistant.components.vera.entity.extra_state_attributes (   self)
Return the state attributes of the device.

Definition at line 68 of file entity.py.

◆ name()

str homeassistant.components.vera.entity.name (   self)
Return the name of the device.

Definition at line 63 of file entity.py.

◆ unique_id()

str homeassistant.components.vera.entity.unique_id (   self)
Return a unique ID.

The Vera assigns a unique and immutable ID number to each device.

Definition at line 98 of file entity.py.

◆ update()

def homeassistant.components.vera.entity.update (   self)
Force a refresh from the device if the device is unavailable.

Definition at line 55 of file entity.py.

Variable Documentation

◆ _LOGGER

homeassistant.components.vera.entity._LOGGER = logging.getLogger(__name__)
private

Definition at line 23 of file entity.py.

◆ _name

homeassistant.components.vera.entity._name
private

Definition at line 36 of file entity.py.

◆ _unique_id

homeassistant.components.vera.entity._unique_id
private

Definition at line 43 of file entity.py.

◆ controller

homeassistant.components.vera.entity.controller

Definition at line 34 of file entity.py.

◆ vera_device

homeassistant.components.vera.entity.vera_device

Definition at line 33 of file entity.py.

◆ vera_id

homeassistant.components.vera.entity.vera_id

Definition at line 38 of file entity.py.