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

Classes

class  RainMachineButton
 
class  RainMachineButtonDescription
 

Functions

None _async_reboot (Controller controller)
 
None async_setup_entry (HomeAssistant hass, RainMachineConfigEntry entry, AddEntitiesCallback async_add_entities)
 

Variables

tuple BUTTON_DESCRIPTIONS
 
string BUTTON_KIND_REBOOT = "reboot"
 

Detailed Description

Buttons for the RainMachine integration.

Function Documentation

◆ _async_reboot()

None homeassistant.components.rainmachine.button._async_reboot ( Controller  controller)
private
Reboot the RainMachine.

Definition at line 39 of file button.py.

◆ async_setup_entry()

None homeassistant.components.rainmachine.button.async_setup_entry ( HomeAssistant  hass,
RainMachineConfigEntry  entry,
AddEntitiesCallback  async_add_entities 
)
Set up RainMachine buttons based on a config entry.

Definition at line 53 of file button.py.

Variable Documentation

◆ BUTTON_DESCRIPTIONS

tuple homeassistant.components.rainmachine.button.BUTTON_DESCRIPTIONS
Initial value:
1 = (
2  RainMachineButtonDescription(
3  key=BUTTON_KIND_REBOOT,
4  api_category=DATA_PROVISION_SETTINGS,
5  push_action=_async_reboot,
6  ),
7 )

Definition at line 44 of file button.py.

◆ BUTTON_KIND_REBOOT

string homeassistant.components.rainmachine.button.BUTTON_KIND_REBOOT = "reboot"

Definition at line 36 of file button.py.