Go to the source code of this file.
Classes | |
| class | homeassistant.components.template.switch.SwitchTemplate |
Namespaces | |
| homeassistant.components.template.switch | |
Functions | |
| def | homeassistant.components.template.switch._async_create_entities (hass, config) |
| SwitchTemplate | homeassistant.components.template.switch.async_create_preview_switch (HomeAssistant hass, str name, dict[str, Any] config) |
| None | homeassistant.components.template.switch.async_setup_entry (HomeAssistant hass, ConfigEntry config_entry, AddEntitiesCallback async_add_entities) |
| None | homeassistant.components.template.switch.async_setup_platform (HomeAssistant hass, ConfigType config, AddEntitiesCallback async_add_entities, DiscoveryInfoType|None discovery_info=None) |
Variables | |
| list | homeassistant.components.template.switch._VALID_STATES = [STATE_ON, STATE_OFF, "true", "false"] |
| homeassistant.components.template.switch.PLATFORM_SCHEMA | |
| homeassistant.components.template.switch.SWITCH_CONFIG_SCHEMA | |
| homeassistant.components.template.switch.SWITCH_SCHEMA | |