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

Public Member Functions

None __init__ (self, ShellyBlockCoordinator coordinator, str attribute, RestEntityDescription description)
 
StateType attribute_value (self)
 
bool available (self)
 
- Public Member Functions inherited from homeassistant.helpers.update_coordinator.CoordinatorEntity
None __init__ (self, _DataUpdateCoordinatorT coordinator, Any context=None)
 
None async_update (self)
 
- Public Member Functions inherited from homeassistant.components.shelly.coordinator.ShellyBlockCoordinator
None __init__ (self, HomeAssistant hass, ShellyConfigEntry entry, BlockDevice device)
 
None async_setup (self, list[Platform]|None pending_platforms=None)
 
CALLBACK_TYPE async_subscribe_input_events (self, Callable[[dict[str, Any]], None] input_event_callback)
 

Public Attributes

 attribute
 
 block_coordinator
 
 entity_description
 
- Public Attributes inherited from homeassistant.components.shelly.coordinator.ShellyBlockCoordinator
 entry
 
 model
 

Private Attributes

 _attr_device_info
 
 _attr_name
 
 _attr_unique_id
 
 _last_value
 

Detailed Description

Class to load info from REST.

Definition at line 458 of file entity.py.

Constructor & Destructor Documentation

◆ __init__()

None homeassistant.components.shelly.entity.ShellyRestAttributeEntity.__init__ (   self,
ShellyBlockCoordinator  coordinator,
str  attribute,
RestEntityDescription  description 
)
Initialize sensor.

Definition at line 463 of file entity.py.

Member Function Documentation

◆ attribute_value()

StateType homeassistant.components.shelly.entity.ShellyRestAttributeEntity.attribute_value (   self)
Value of sensor.

Definition at line 489 of file entity.py.

◆ available()

bool homeassistant.components.shelly.entity.ShellyRestAttributeEntity.available (   self)
Available.

Reimplemented from homeassistant.helpers.update_coordinator.CoordinatorEntity.

Definition at line 484 of file entity.py.

Member Data Documentation

◆ _attr_device_info

homeassistant.components.shelly.entity.ShellyRestAttributeEntity._attr_device_info
private

Definition at line 478 of file entity.py.

◆ _attr_name

homeassistant.components.shelly.entity.ShellyRestAttributeEntity._attr_name
private

Definition at line 474 of file entity.py.

◆ _attr_unique_id

homeassistant.components.shelly.entity.ShellyRestAttributeEntity._attr_unique_id
private

Definition at line 477 of file entity.py.

◆ _last_value

homeassistant.components.shelly.entity.ShellyRestAttributeEntity._last_value
private

Definition at line 481 of file entity.py.

◆ attribute

homeassistant.components.shelly.entity.ShellyRestAttributeEntity.attribute

Definition at line 472 of file entity.py.

◆ block_coordinator

homeassistant.components.shelly.entity.ShellyRestAttributeEntity.block_coordinator

Definition at line 471 of file entity.py.

◆ entity_description

homeassistant.components.shelly.entity.ShellyRestAttributeEntity.entity_description

Definition at line 473 of file entity.py.


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