Namespaces | |
| config_flow | |
| const | |
| device_tracker | |
Functions | |
| str | _id (str value) |
| dict | _validate_test_mode (dict obj) |
| bool | async_setup_entry (HomeAssistant hass, ConfigEntry entry) |
| bool | async_unload_entry (HomeAssistant hass, ConfigEntry entry) |
| web.Response | handle_webhook (HomeAssistant hass, str webhook_id, web.Request request) |
Variables | |
| _LOGGER = logging.getLogger(__name__) | |
| async_remove_entry = config_entry_flow.webhook_async_remove_entry | |
| string | ATTR_DEVICE_ID = "device" |
| string | ATTR_TRIGGER = "trigger" |
| string | DOMAIN = "locative" |
| list | PLATFORMS = [Platform.DEVICE_TRACKER] |
| string | TRACKER_UPDATE = f"{DOMAIN}_tracker_update" |
| WEBHOOK_SCHEMA | |
Support for Locative.
|
private |
Coerce id by removing '-'.
Definition at line 37 of file __init__.py.
|
private |
Validate that id is provided outside of test mode.
Definition at line 42 of file __init__.py.
| bool homeassistant.components.locative.async_setup_entry | ( | HomeAssistant | hass, |
| ConfigEntry | entry | ||
| ) |
Configure based on config entry.
Definition at line 114 of file __init__.py.
| bool homeassistant.components.locative.async_unload_entry | ( | HomeAssistant | hass, |
| ConfigEntry | entry | ||
| ) |
Unload a config entry.
Definition at line 126 of file __init__.py.
| web.Response homeassistant.components.locative.handle_webhook | ( | HomeAssistant | hass, |
| str | webhook_id, | ||
| web.Request | request | ||
| ) |
Handle incoming webhook from Locative.
Definition at line 64 of file __init__.py.
|
private |
Definition at line 26 of file __init__.py.
| homeassistant.components.locative.async_remove_entry = config_entry_flow.webhook_async_remove_entry |
Definition at line 133 of file __init__.py.
| string homeassistant.components.locative.ATTR_DEVICE_ID = "device" |
Definition at line 33 of file __init__.py.
| string homeassistant.components.locative.ATTR_TRIGGER = "trigger" |
Definition at line 34 of file __init__.py.
| string homeassistant.components.locative.DOMAIN = "locative" |
Definition at line 28 of file __init__.py.
| list homeassistant.components.locative.PLATFORMS = [Platform.DEVICE_TRACKER] |
Definition at line 31 of file __init__.py.
| string homeassistant.components.locative.TRACKER_UPDATE = f"{DOMAIN}_tracker_update" |
Definition at line 29 of file __init__.py.
| homeassistant.components.locative.WEBHOOK_SCHEMA |
Definition at line 49 of file __init__.py.