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

Public Member Functions

None __init__ (self, ShellyBlockCoordinator coordinator, Block block)
 
None async_added_to_hass (self)
 
Any set_state (self, **Any kwargs)
 
- Public Member Functions inherited from homeassistant.helpers.update_coordinator.CoordinatorEntity
None __init__ (self, _DataUpdateCoordinatorT coordinator, Any context=None)
 
None async_update (self)
 
bool available (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

 block
 
- Public Attributes inherited from homeassistant.components.shelly.coordinator.ShellyBlockCoordinator
 entry
 
 model
 

Private Member Functions

None _update_callback (self)
 

Private Attributes

 _attr_device_info
 
 _attr_name
 
 _attr_unique_id
 

Detailed Description

Helper class to represent a block entity.

Definition at line 310 of file entity.py.

Constructor & Destructor Documentation

◆ __init__()

None homeassistant.components.shelly.entity.ShellyBlockEntity.__init__ (   self,
ShellyBlockCoordinator  coordinator,
Block  block 
)

Member Function Documentation

◆ _update_callback()

◆ async_added_to_hass()

◆ set_state()

Any homeassistant.components.shelly.entity.ShellyBlockEntity.set_state (   self,
**Any  kwargs 
)
Set block state (HTTP request).

Definition at line 333 of file entity.py.

Member Data Documentation

◆ _attr_device_info

homeassistant.components.shelly.entity.ShellyBlockEntity._attr_device_info
private

Definition at line 318 of file entity.py.

◆ _attr_name

homeassistant.components.shelly.entity.ShellyBlockEntity._attr_name
private

Definition at line 317 of file entity.py.

◆ _attr_unique_id

homeassistant.components.shelly.entity.ShellyBlockEntity._attr_unique_id
private

Definition at line 321 of file entity.py.

◆ block

homeassistant.components.shelly.entity.ShellyBlockEntity.block

Definition at line 316 of file entity.py.


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