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 | |
| None homeassistant.components.shelly.entity.ShellyBlockEntity.__init__ | ( | self, | |
| ShellyBlockCoordinator | coordinator, | ||
| Block | block | ||
| ) |
Initialize Shelly entity.
Reimplemented in homeassistant.components.shelly.switch.BlockRelaySwitch, homeassistant.components.shelly.light.BlockShellyLight, and homeassistant.components.shelly.cover.BlockShellyCover.
|
private |
Handle device update.
Reimplemented in homeassistant.components.shelly.valve.BlockShellyValve, homeassistant.components.shelly.switch.BlockRelaySwitch, homeassistant.components.shelly.light.BlockShellyLight, homeassistant.components.shelly.entity.ShellySleepingBlockAttributeEntity, and homeassistant.components.shelly.cover.BlockShellyCover.
| None homeassistant.components.shelly.entity.ShellyBlockEntity.async_added_to_hass | ( | self | ) |
When entity is added to HASS.
Reimplemented in homeassistant.components.shelly.switch.BlockSleepingMotionSwitch, homeassistant.components.shelly.sensor.BlockSleepingSensor, homeassistant.components.shelly.number.BlockSleepingNumber, homeassistant.components.shelly.event.ShellyBlockEvent, and homeassistant.components.shelly.binary_sensor.BlockSleepingBinarySensor.
| Any homeassistant.components.shelly.entity.ShellyBlockEntity.set_state | ( | self, | |
| **Any | kwargs | ||
| ) |
|
private |
|
private |
|
private |
| homeassistant.components.shelly.entity.ShellyBlockEntity.block |