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

Classes

class  Eq3SwitchEntity
 
class  Eq3SwitchEntityDescription
 

Functions

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

Variables

list SWITCH_ENTITY_DESCRIPTIONS
 

Detailed Description

Platform for eq3 switch entities.

Function Documentation

◆ async_setup_entry()

None homeassistant.components.eq3btsmart.switch.async_setup_entry ( HomeAssistant  hass,
Eq3ConfigEntry  entry,
AddEntitiesCallback  async_add_entities 
)
Set up the entry.

Definition at line 49 of file switch.py.

Variable Documentation

◆ SWITCH_ENTITY_DESCRIPTIONS

list homeassistant.components.eq3btsmart.switch.SWITCH_ENTITY_DESCRIPTIONS
Initial value:
1 = [
2  Eq3SwitchEntityDescription(
3  key=ENTITY_KEY_LOCK,
4  translation_key=ENTITY_KEY_LOCK,
5  toggle_func=lambda thermostat: thermostat.async_set_locked,
6  value_func=lambda status: status.is_locked,
7  ),
8  Eq3SwitchEntityDescription(
9  key=ENTITY_KEY_BOOST,
10  translation_key=ENTITY_KEY_BOOST,
11  toggle_func=lambda thermostat: thermostat.async_set_boost,
12  value_func=lambda status: status.is_boost,
13  ),
14  Eq3SwitchEntityDescription(
15  key=ENTITY_KEY_AWAY,
16  translation_key=ENTITY_KEY_AWAY,
17  toggle_func=lambda thermostat: thermostat.async_set_away,
18  value_func=lambda status: status.is_away,
19  ),
20 ]

Definition at line 27 of file switch.py.