Namespaces | |
| config_flow | |
| const | |
| cover | |
| entity | |
| fan | |
| light | |
| lock | |
| siren | |
| valve | |
Functions | |
| str|None | async_add_to_device (HomeAssistant hass, ConfigEntry entry, str entity_id) |
| bool | async_migrate_entry (HomeAssistant hass, ConfigEntry config_entry) |
| None | async_remove_entry (HomeAssistant hass, ConfigEntry entry) |
| bool | async_setup_entry (HomeAssistant hass, ConfigEntry entry) |
| bool | async_unload_entry (HomeAssistant hass, ConfigEntry entry) |
| None | config_entry_update_listener (HomeAssistant hass, ConfigEntry entry) |
Variables | |
| list | __all__ = ["LightSwitch"] |
| _LOGGER = logging.getLogger(__name__) | |
Component to wrap switch entities in entities of other domains.
| str | None homeassistant.components.switch_as_x.async_add_to_device | ( | HomeAssistant | hass, |
| ConfigEntry | entry, | ||
| str | entity_id | ||
| ) |
Add our config entry to the tracked entity's device.
Definition at line 25 of file __init__.py.
| bool homeassistant.components.switch_as_x.async_migrate_entry | ( | HomeAssistant | hass, |
| ConfigEntry | config_entry | ||
| ) |
Migrate old entry.
Definition at line 104 of file __init__.py.
| None homeassistant.components.switch_as_x.async_remove_entry | ( | HomeAssistant | hass, |
| ConfigEntry | entry | ||
| ) |
Unload a config entry. This will unhide the wrapped entity and restore assistant expose settings.
Definition at line 142 of file __init__.py.
| bool homeassistant.components.switch_as_x.async_setup_entry | ( | HomeAssistant | hass, |
| ConfigEntry | entry | ||
| ) |
Set up a config entry.
Definition at line 45 of file __init__.py.
| bool homeassistant.components.switch_as_x.async_unload_entry | ( | HomeAssistant | hass, |
| ConfigEntry | entry | ||
| ) |
Unload a config entry.
Definition at line 135 of file __init__.py.
| None homeassistant.components.switch_as_x.config_entry_update_listener | ( | HomeAssistant | hass, |
| ConfigEntry | entry | ||
| ) |
Update listener, called when the config entry options are changed.
Definition at line 130 of file __init__.py.
|
private |
Definition at line 19 of file __init__.py.
|
private |
Definition at line 21 of file __init__.py.