Namespaces | |
| application_credentials | |
| binary_sensor | |
| calendar | |
| config_flow | |
| const | |
| coordinator | |
| diagnostics | |
| entity | |
| sensor | |
Classes | |
| class | WithingsData |
| class | WithingsWebhookManager |
Functions | |
| str | _async_cloudhook_generate_url (HomeAssistant hass, WithingsConfigEntry entry) |
| None | async_remove_entry (HomeAssistant hass, WithingsConfigEntry entry) |
| bool | async_setup_entry (HomeAssistant hass, WithingsConfigEntry entry) |
| None | async_subscribe_webhooks (WithingsClient client, str webhook_url) |
| bool | async_unload_entry (HomeAssistant hass, WithingsConfigEntry entry) |
| None | async_unsubscribe_webhooks (WithingsClient client) |
| Callable[[HomeAssistant, str, Request], Awaitable[Response|None]] | get_webhook_handler (WithingsData withings_data) |
| Response | json_message_response (str message, int message_code) |
Variables | |
| string | CONF_CLOUDHOOK_URL = "cloudhook_url" |
| list | PLATFORMS = [Platform.BINARY_SENSOR, Platform.CALENDAR, Platform.SENSOR] |
| SUBSCRIBE_DELAY = timedelta(seconds=5) | |
| UNSUBSCRIBE_DELAY = timedelta(seconds=1) | |
| WithingsConfigEntry | |
Support for the Withings API. For more details about this platform, please refer to the documentation at
|
private |
Generate the full URL for a webhook_id.
Definition at line 303 of file __init__.py.
| None homeassistant.components.withings.async_remove_entry | ( | HomeAssistant | hass, |
| WithingsConfigEntry | entry | ||
| ) |
Cleanup when entry is removed.
Definition at line 320 of file __init__.py.
| bool homeassistant.components.withings.async_setup_entry | ( | HomeAssistant | hass, |
| WithingsConfigEntry | entry | ||
| ) |
Set up Withings from a config entry.
Definition at line 93 of file __init__.py.
| None homeassistant.components.withings.async_subscribe_webhooks | ( | WithingsClient | client, |
| str | webhook_url | ||
| ) |
Subscribe to Withings webhooks.
Definition at line 174 of file __init__.py.
| bool homeassistant.components.withings.async_unload_entry | ( | HomeAssistant | hass, |
| WithingsConfigEntry | entry | ||
| ) |
Unload Withings config entry.
Definition at line 167 of file __init__.py.
| None homeassistant.components.withings.async_unsubscribe_webhooks | ( | WithingsClient | client | ) |
Unsubscribe to all Withings webhooks.
Definition at line 279 of file __init__.py.
| Callable[[HomeAssistant, str, Request], Awaitable[Response | None]] homeassistant.components.withings.get_webhook_handler | ( | WithingsData | withings_data | ) |
Return webhook handler.
Definition at line 337 of file __init__.py.
| Response homeassistant.components.withings.json_message_response | ( | str | message, |
| int | message_code | ||
| ) |
Produce common json output.
Definition at line 332 of file __init__.py.
| string homeassistant.components.withings.CONF_CLOUDHOOK_URL = "cloudhook_url" |
Definition at line 62 of file __init__.py.
| list homeassistant.components.withings.PLATFORMS = [Platform.BINARY_SENSOR, Platform.CALENDAR, Platform.SENSOR] |
Definition at line 58 of file __init__.py.
| homeassistant.components.withings.SUBSCRIBE_DELAY = timedelta(seconds=5) |
Definition at line 60 of file __init__.py.
| homeassistant.components.withings.UNSUBSCRIBE_DELAY = timedelta(seconds=1) |
Definition at line 61 of file __init__.py.
| homeassistant.components.withings.WithingsConfigEntry |
Definition at line 63 of file __init__.py.