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

Classes

class  DigitalOceanSwitch
 

Functions

None setup_platform (HomeAssistant hass, ConfigType config, AddEntitiesCallback add_entities, DiscoveryInfoType|None discovery_info=None)
 

Variables

 _LOGGER = logging.getLogger(__name__)
 
string DEFAULT_NAME = "Droplet"
 
 PLATFORM_SCHEMA
 

Detailed Description

Support for interacting with Digital Ocean droplets.

Function Documentation

◆ setup_platform()

None homeassistant.components.digital_ocean.switch.setup_platform ( HomeAssistant  hass,
ConfigType  config,
AddEntitiesCallback  add_entities,
DiscoveryInfoType | None   discovery_info = None 
)
Set up the Digital Ocean droplet switch.

Definition at line 43 of file switch.py.

Variable Documentation

◆ _LOGGER

homeassistant.components.digital_ocean.switch._LOGGER = logging.getLogger(__name__)
private

Definition at line 34 of file switch.py.

◆ DEFAULT_NAME

string homeassistant.components.digital_ocean.switch.DEFAULT_NAME = "Droplet"

Definition at line 36 of file switch.py.

◆ PLATFORM_SCHEMA

homeassistant.components.digital_ocean.switch.PLATFORM_SCHEMA
Initial value:
1 = SWITCH_PLATFORM_SCHEMA.extend(
2  {vol.Required(CONF_DROPLETS): vol.All(cv.ensure_list, [cv.string])}
3 )

Definition at line 38 of file switch.py.