Home Assistant Unofficial Reference 2024.12.1
homeassistant.components.shelly.button Namespace Reference

Classes

class  ShellyButton
 
class  ShellyButtonDescription
 

Functions

dict[str, Any]|None async_migrate_unique_ids (ShellyRpcCoordinator|ShellyBlockCoordinator coordinator, er.RegistryEntry entity_entry)
 
None async_setup_entry (HomeAssistant hass, ShellyConfigEntry config_entry, AddEntitiesCallback async_add_entities)
 

Variables

 device_class
 
 entity_category
 
 key
 
 name
 
 press_action
 
 supported
 
 translation_key
 

Detailed Description

Button for Shelly.

Function Documentation

◆ async_migrate_unique_ids()

dict[str, Any] | None homeassistant.components.shelly.button.async_migrate_unique_ids ( ShellyRpcCoordinator | ShellyBlockCoordinator  coordinator,
er.RegistryEntry  entity_entry 
)
Migrate button unique IDs.

Definition at line 77 of file button.py.

◆ async_setup_entry()

None homeassistant.components.shelly.button.async_setup_entry ( HomeAssistant  hass,
ShellyConfigEntry  config_entry,
AddEntitiesCallback  async_add_entities 
)
Set buttons for device.

Definition at line 106 of file button.py.

Variable Documentation

◆ device_class

homeassistant.components.shelly.button.device_class

Definition at line 45 of file button.py.

◆ entity_category

homeassistant.components.shelly.button.entity_category

Definition at line 46 of file button.py.

◆ key

homeassistant.components.shelly.button.key
Class to describe a Button entity.

Definition at line 43 of file button.py.

◆ name

homeassistant.components.shelly.button.name

Definition at line 44 of file button.py.

◆ press_action

homeassistant.components.shelly.button.press_action

Definition at line 47 of file button.py.

◆ supported

homeassistant.components.shelly.button.supported

Definition at line 55 of file button.py.

◆ translation_key

homeassistant.components.shelly.button.translation_key

Definition at line 52 of file button.py.