Home Assistant Unofficial Reference 2024.12.1
switch.py File Reference

Go to the source code of this file.

Classes

class  homeassistant.components.mqtt.switch.MqttSwitch
 

Namespaces

 homeassistant.components.mqtt.switch
 

Functions

None homeassistant.components.mqtt.switch.async_setup_entry (HomeAssistant hass, ConfigEntry config_entry, AddEntitiesCallback async_add_entities)
 

Variables

string homeassistant.components.mqtt.switch.CONF_STATE_OFF = "state_off"
 
string homeassistant.components.mqtt.switch.CONF_STATE_ON = "state_on"
 
string homeassistant.components.mqtt.switch.DEFAULT_NAME = "MQTT Switch"
 
string homeassistant.components.mqtt.switch.DEFAULT_PAYLOAD_OFF = "OFF"
 
string homeassistant.components.mqtt.switch.DEFAULT_PAYLOAD_ON = "ON"
 
 homeassistant.components.mqtt.switch.DISCOVERY_SCHEMA = PLATFORM_SCHEMA_MODERN.extend({}, extra=vol.REMOVE_EXTRA)
 
int homeassistant.components.mqtt.switch.PARALLEL_UPDATES = 0
 
 homeassistant.components.mqtt.switch.PLATFORM_SCHEMA_MODERN