Home Assistant Unofficial Reference 2024.12.1
switch.py File Reference

Go to the source code of this file.

Classes

class  homeassistant.components.rest.switch.RestSwitch
 

Namespaces

 homeassistant.components.rest.switch
 

Functions

None homeassistant.components.rest.switch.async_setup_platform (HomeAssistant hass, ConfigType config, AddEntitiesCallback async_add_entities, DiscoveryInfoType|None discovery_info=None)
 

Variables

 homeassistant.components.rest.switch._LOGGER = logging.getLogger(__name__)
 
string homeassistant.components.rest.switch.CONF_BODY_OFF = "body_off"
 
string homeassistant.components.rest.switch.CONF_BODY_ON = "body_on"
 
string homeassistant.components.rest.switch.CONF_IS_ON_TEMPLATE = "is_on_template"
 
string homeassistant.components.rest.switch.CONF_STATE_RESOURCE = "state_resource"
 
string homeassistant.components.rest.switch.DEFAULT_BODY_OFF = "OFF"
 
string homeassistant.components.rest.switch.DEFAULT_BODY_ON = "ON"
 
string homeassistant.components.rest.switch.DEFAULT_METHOD = "post"
 
string homeassistant.components.rest.switch.DEFAULT_NAME = "REST Switch"
 
int homeassistant.components.rest.switch.DEFAULT_TIMEOUT = 10
 
bool homeassistant.components.rest.switch.DEFAULT_VERIFY_SSL = True
 
 homeassistant.components.rest.switch.PLATFORM_SCHEMA
 
list homeassistant.components.rest.switch.SUPPORT_REST_METHODS = ["post", "put", "patch"]
 
tuple homeassistant.components.rest.switch.TRIGGER_ENTITY_OPTIONS