Public Member Functions | |
| None | __init__ (self, HomeAssistant hass) |
| None | async_handle_service_call (self, ServiceCall call) |
| None | async_notify_errors (self, str request_id, str error) |
| str | async_request_config (self, str name, ConfiguratorCallback|None callback, str|None description, str|None submit_caption, list[dict[str, str]]|None fields, str|None entity_picture) |
| None | async_request_done (self, str request_id) |
Public Attributes | |
| hass | |
Private Member Functions | |
| str | _generate_unique_id (self) |
| bool | _validate_request_id (self, str request_id) |
Private Attributes | |
| _cur_id | |
The class to keep track of current configuration requests.
Definition at line 149 of file __init__.py.
| None homeassistant.components.configurator.Configurator.__init__ | ( | self, | |
| HomeAssistant | hass | ||
| ) |
Initialize the configurator.
Definition at line 152 of file __init__.py.
|
private |
Generate a unique configurator ID.
Definition at line 259 of file __init__.py.
|
private |
Validate that the request belongs to this instance.
Definition at line 264 of file __init__.py.
| None homeassistant.components.configurator.Configurator.async_handle_service_call | ( | self, | |
| ServiceCall | call | ||
| ) |
Handle a configure service call.
Definition at line 242 of file __init__.py.
| None homeassistant.components.configurator.Configurator.async_notify_errors | ( | self, | |
| str | request_id, | ||
| str | error | ||
| ) |
Update the state with errors.
Definition at line 206 of file __init__.py.
| str homeassistant.components.configurator.Configurator.async_request_config | ( | self, | |
| str | name, | ||
| ConfiguratorCallback | None | callback, | ||
| str | None | description, | ||
| str | None | submit_caption, | ||
| list[dict[str, str]] | None | fields, | ||
| str | None | entity_picture | ||
| ) |
Set up a request for configuration.
Definition at line 164 of file __init__.py.
| None homeassistant.components.configurator.Configurator.async_request_done | ( | self, | |
| str | request_id | ||
| ) |
Remove the configuration request.
Definition at line 222 of file __init__.py.
|
private |
Definition at line 155 of file __init__.py.
| homeassistant.components.configurator.Configurator.hass |
Definition at line 154 of file __init__.py.