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

Classes

class  SwitchBotCloudPlugSwitch
 
class  SwitchBotCloudRemoteSwitch
 
class  SwitchBotCloudSwitch
 

Functions

SwitchBotCloudSwitch _async_make_entity (SwitchBotAPI api, Device|Remote device, SwitchBotCoordinator coordinator)
 
None async_setup_entry (HomeAssistant hass, ConfigEntry config, AddEntitiesCallback async_add_entities)
 

Detailed Description

Support for SwitchBot switch.

Function Documentation

◆ _async_make_entity()

SwitchBotCloudSwitch homeassistant.components.switchbot_cloud.switch._async_make_entity ( SwitchBotAPI  api,
Device | Remote  device,
SwitchBotCoordinator   coordinator 
)
private
Make a SwitchBotCloudSwitch or SwitchBotCloudRemoteSwitch.

Definition at line 73 of file switch.py.

◆ async_setup_entry()

None homeassistant.components.switchbot_cloud.switch.async_setup_entry ( HomeAssistant  hass,
ConfigEntry  config,
AddEntitiesCallback  async_add_entities 
)
Set up SwitchBot Cloud entry.

Definition at line 18 of file switch.py.