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

Classes

class  FluxButton
 

Functions

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

Variables

string _RESTART_KEY = "restart"
 
string _UNPAIR_REMOTES_KEY = "unpair_remotes"
 
 RESTART_BUTTON_DESCRIPTION
 
 UNPAIR_REMOTES_DESCRIPTION
 

Detailed Description

Support for Magic home button.

Function Documentation

◆ async_setup_entry()

None homeassistant.components.flux_led.button.async_setup_entry ( HomeAssistant  hass,
config_entries.ConfigEntry  entry,
AddEntitiesCallback  async_add_entities 
)
Set up Magic Home button based on a config entry.

Definition at line 35 of file button.py.

Variable Documentation

◆ _RESTART_KEY

string homeassistant.components.flux_led.button._RESTART_KEY = "restart"
private

Definition at line 22 of file button.py.

◆ _UNPAIR_REMOTES_KEY

string homeassistant.components.flux_led.button._UNPAIR_REMOTES_KEY = "unpair_remotes"
private

Definition at line 23 of file button.py.

◆ RESTART_BUTTON_DESCRIPTION

homeassistant.components.flux_led.button.RESTART_BUTTON_DESCRIPTION
Initial value:
2  key=_RESTART_KEY,
3  device_class=ButtonDeviceClass.RESTART,
4 )

Definition at line 25 of file button.py.

◆ UNPAIR_REMOTES_DESCRIPTION

homeassistant.components.flux_led.button.UNPAIR_REMOTES_DESCRIPTION
Initial value:
2  key=_UNPAIR_REMOTES_KEY,
3  translation_key="unpair_remotes",
4 )

Definition at line 29 of file button.py.