Home Assistant Unofficial Reference 2024.12.1
homeassistant.components.switchbot.light Namespace Reference

Classes

class  SwitchbotLightEntity
 

Functions

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

Variables

int PARALLEL_UPDATES = 0
 
dictionary SWITCHBOT_COLOR_MODE_TO_HASS
 

Detailed Description

Switchbot integration light platform.

Function Documentation

◆ async_setup_entry()

None homeassistant.components.switchbot.light.async_setup_entry ( HomeAssistant  hass,
SwitchbotConfigEntry  entry,
AddEntitiesCallback  async_add_entities 
)
Set up the switchbot light.

Definition at line 34 of file light.py.

Variable Documentation

◆ PARALLEL_UPDATES

int homeassistant.components.switchbot.light.PARALLEL_UPDATES = 0

Definition at line 31 of file light.py.

◆ SWITCHBOT_COLOR_MODE_TO_HASS

dictionary homeassistant.components.switchbot.light.SWITCHBOT_COLOR_MODE_TO_HASS
Initial value:
1 = {
2  SwitchBotColorMode.RGB: ColorMode.RGB,
3  SwitchBotColorMode.COLOR_TEMP: ColorMode.COLOR_TEMP,
4 }

Definition at line 26 of file light.py.