Home Assistant Unofficial Reference 2024.12.1
homeassistant.components.tolo.switch Namespace Reference

Classes

class  ToloSwitchEntity
 
class  ToloSwitchEntityDescription
 

Functions

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

Variables

tuple SWITCHES
 

Detailed Description

TOLO Sauna switch controls.

Function Documentation

◆ async_setup_entry()

None homeassistant.components.tolo.switch.async_setup_entry ( HomeAssistant  hass,
ConfigEntry  entry,
AddEntitiesCallback  async_add_entities 
)
Set up switch controls for TOLO Sauna.

Definition at line 45 of file switch.py.

Variable Documentation

◆ SWITCHES

tuple homeassistant.components.tolo.switch.SWITCHES
Initial value:
1 = (
2  ToloSwitchEntityDescription(
3  key="aroma_therapy_on",
4  translation_key="aroma_therapy_on",
5  getter=lambda status: status.aroma_therapy_on,
6  setter=lambda client, value: client.set_aroma_therapy_on(value),
7  ),
8  ToloSwitchEntityDescription(
9  key="salt_bath_on",
10  translation_key="salt_bath_on",
11  getter=lambda status: status.salt_bath_on,
12  setter=lambda client, value: client.set_salt_bath_on(value),
13  ),
14 )

Definition at line 29 of file switch.py.