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

Classes

class  SmButton
 
class  SmButtonDescription
 

Functions

None async_setup_entry (HomeAssistant hass, ConfigEntry entry, AddEntitiesCallback async_add_entities)
 

Variables

 _LOGGER = logging.getLogger(__name__)
 
 ROUTER
 

Detailed Description

Support for SLZB-06 buttons.

Function Documentation

◆ async_setup_entry()

None homeassistant.components.smlight.button.async_setup_entry ( HomeAssistant  hass,
ConfigEntry  entry,
AddEntitiesCallback  async_add_entities 
)
Set up SMLIGHT buttons based on a config entry.

Definition at line 66 of file button.py.

Variable Documentation

◆ _LOGGER

homeassistant.components.smlight.button._LOGGER = logging.getLogger(__name__)
private

Definition at line 27 of file button.py.

◆ ROUTER

homeassistant.components.smlight.button.ROUTER
Initial value:
1 = SmButtonDescription(
2  key="reconnect_zigbee_router",
3  translation_key="reconnect_zigbee_router",
4  entity_registry_enabled_default=False,
5  press_fn=lambda cmd: cmd.zb_router(),
6 )

Definition at line 58 of file button.py.