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

Classes

class  RequiredKeysMixin
 
class  RobotSwitchEntity
 
class  RobotSwitchEntityDescription
 

Functions

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

Variables

list ROBOT_SWITCHES
 

Detailed Description

Support for Litter-Robot switches.

Function Documentation

◆ async_setup_entry()

None homeassistant.components.litterrobot.switch.async_setup_entry ( HomeAssistant  hass,
LitterRobotConfigEntry  entry,
AddEntitiesCallback  async_add_entities 
)
Set up Litter-Robot switches using config entry.

Definition at line 67 of file switch.py.

Variable Documentation

◆ ROBOT_SWITCHES

list homeassistant.components.litterrobot.switch.ROBOT_SWITCHES
Initial value:
1 = [
2  RobotSwitchEntityDescription[LitterRobot | FeederRobot](
3  key="night_light_mode_enabled",
4  translation_key="night_light_mode",
5  set_fn=lambda robot, value: robot.set_night_light(value),
6  ),
7  RobotSwitchEntityDescription[LitterRobot | FeederRobot](
8  key="panel_lock_enabled",
9  translation_key="panel_lockout",
10  set_fn=lambda robot, value: robot.set_panel_lockout(value),
11  ),
12 ]

Definition at line 34 of file switch.py.