Namespaces | |
| binary_sensor | |
| const | |
| data | |
| entity | |
| notify | |
| schema | |
| sensor | |
| switch | |
| util | |
Functions | |
| bool | _async_process_config (HomeAssistant hass, ConfigType config) |
| None | _async_setup_shared_data (HomeAssistant hass) |
| DataUpdateCoordinator[None] | _rest_coordinator (HomeAssistant hass, RestData rest, template.Template|None resource_template, template.Template|None payload_template, timedelta update_interval) |
| tuple[ConfigType, DataUpdateCoordinator[None], RestData] | async_get_config_and_coordinator (HomeAssistant hass, str platform_domain, DiscoveryInfoType discovery_info) |
| bool | async_setup (HomeAssistant hass, ConfigType config) |
| RestData | create_rest_data_from_config (HomeAssistant hass, ConfigType config) |
Variables | |
| _LOGGER = logging.getLogger(__name__) | |
| list | COORDINATOR_AWARE_PLATFORMS = [SENSOR_DOMAIN, BINARY_SENSOR_DOMAIN] |
| list | PLATFORMS |
The rest component.
|
private |
Process rest configuration.
Definition at line 101 of file __init__.py.
|
private |
Create shared data for platform config and rest coordinators.
Definition at line 96 of file __init__.py.
|
private |
Wrap a DataUpdateCoordinator around the rest object.
Definition at line 159 of file __init__.py.
| tuple[ConfigType, DataUpdateCoordinator[None], RestData] homeassistant.components.rest.async_get_config_and_coordinator | ( | HomeAssistant | hass, |
| str | platform_domain, | ||
| DiscoveryInfoType | discovery_info | ||
| ) |
Get the config and coordinator for the platform from discovery.
Definition at line 146 of file __init__.py.
| bool homeassistant.components.rest.async_setup | ( | HomeAssistant | hass, |
| ConfigType | config | ||
| ) |
Set up the rest platforms.
Definition at line 73 of file __init__.py.
| RestData homeassistant.components.rest.create_rest_data_from_config | ( | HomeAssistant | hass, |
| ConfigType | config | ||
| ) |
Create RestData from config.
Definition at line 190 of file __init__.py.
|
private |
Definition at line 61 of file __init__.py.
| list homeassistant.components.rest.COORDINATOR_AWARE_PLATFORMS = [SENSOR_DOMAIN, BINARY_SENSOR_DOMAIN] |
Definition at line 70 of file __init__.py.
| list homeassistant.components.rest.PLATFORMS |
Definition at line 63 of file __init__.py.