Public Member Functions | |
| def | __init__ (self, hass, config) |
| def | async_call_homegraph_api (self, url, data) |
| def | async_connect_agent_user (self, str agent_user_id) |
| def | async_disconnect_agent_user (self, str agent_user_id) |
| def | async_get_agent_users (self) |
| def | async_initialize (self) |
| HTTPStatus | async_report_state (self, dict[str, Any] message, str agent_user_id, str|None event_id=None) |
| def | enabled (self) |
| def | entity_config (self) |
| def | get_agent_user_id_from_context (self, context) |
| def | get_agent_user_id_from_webhook (self, webhook_id) |
| def | get_local_user_id (self, webhook_id) |
| def | get_local_webhook_id (self, agent_user_id) |
| def | secure_devices_pin (self) |
| def | should_2fa (self, state) |
| bool | should_expose (self, state) |
| def | should_report_state (self) |
Public Member Functions inherited from homeassistant.components.google_assistant.helpers.AbstractConfig | |
| None | __init__ (self, HomeAssistant hass) |
| None | async_deinitialize (self) |
| None | async_disable_local_sdk (self) |
| None | async_disable_report_state (self) |
| None | async_enable_local_sdk (self) |
| None | async_enable_report_state (self) |
| def | async_report_state_all (self, message) |
| def | async_schedule_google_sync (self, str agent_user_id) |
| None | async_schedule_google_sync_all (self) |
| def | async_sync_entities (self, str agent_user_id) |
| int | async_sync_entities_all (self) |
| HTTPStatus | async_sync_notification (self, str agent_user_id, str event_id, dict[str, Any] payload) |
| HTTPStatus | async_sync_notification_all (self, str event_id, dict[str, Any] payload) |
| bool | is_local_connected (self) |
| def | is_local_sdk_active (self) |
| def | is_reporting_state (self) |
Private Member Functions | |
| HTTPStatus | _async_request_sync_devices (self, str agent_user_id) |
| def | _async_update_token (self, force=False) |
Private Attributes | |
| _access_token | |
| _access_token_renew | |
| _config | |
| _store | |
Additional Inherited Members | |
Public Attributes inherited from homeassistant.components.google_assistant.helpers.AbstractConfig | |
| hass | |
Static Public Attributes inherited from homeassistant.components.google_assistant.helpers.AbstractConfig | |
| None | |
| def homeassistant.components.google_assistant.http.GoogleConfig.__init__ | ( | self, | |
| hass, | |||
| config | |||
| ) |
|
private |
Trigger a sync with Google. Return value is the HTTP status code of the sync request.
Reimplemented from homeassistant.components.google_assistant.helpers.AbstractConfig.
|
private |
| def homeassistant.components.google_assistant.http.GoogleConfig.async_call_homegraph_api | ( | self, | |
| url, | |||
| data | |||
| ) |
| def homeassistant.components.google_assistant.http.GoogleConfig.async_connect_agent_user | ( | self, | |
| str | agent_user_id | ||
| ) |
Add a synced and known agent_user_id. Called before sending a sync response to Google.
Reimplemented from homeassistant.components.google_assistant.helpers.AbstractConfig.
| def homeassistant.components.google_assistant.http.GoogleConfig.async_disconnect_agent_user | ( | self, | |
| str | agent_user_id | ||
| ) |
Turn off report state and disable further state reporting. Called when: - The user disconnects their account from Google. - When the cloud configuration is initialized - When sync entities fails with 404
Reimplemented from homeassistant.components.google_assistant.helpers.AbstractConfig.
| def homeassistant.components.google_assistant.http.GoogleConfig.async_get_agent_users | ( | self | ) |
Return known agent users.
Reimplemented from homeassistant.components.google_assistant.helpers.AbstractConfig.
| def homeassistant.components.google_assistant.http.GoogleConfig.async_initialize | ( | self | ) |
Perform async initialization of config.
Reimplemented from homeassistant.components.google_assistant.helpers.AbstractConfig.
| HTTPStatus homeassistant.components.google_assistant.http.GoogleConfig.async_report_state | ( | self, | |
| dict[str, Any] | message, | ||
| str | agent_user_id, | ||
| str | None | event_id = None |
||
| ) |
Send a state report to Google.
Reimplemented from homeassistant.components.google_assistant.helpers.AbstractConfig.
| def homeassistant.components.google_assistant.http.GoogleConfig.enabled | ( | self | ) |
Return if Google is enabled.
Reimplemented from homeassistant.components.google_assistant.helpers.AbstractConfig.
| def homeassistant.components.google_assistant.http.GoogleConfig.entity_config | ( | self | ) |
Return entity config.
Reimplemented from homeassistant.components.google_assistant.helpers.AbstractConfig.
| def homeassistant.components.google_assistant.http.GoogleConfig.get_agent_user_id_from_context | ( | self, | |
| context | |||
| ) |
Get agent user ID making request.
Reimplemented from homeassistant.components.google_assistant.helpers.AbstractConfig.
| def homeassistant.components.google_assistant.http.GoogleConfig.get_agent_user_id_from_webhook | ( | self, | |
| webhook_id | |||
| ) |
Map webhook ID to a Google agent user ID. Return None if no agent user id is found for the webhook_id.
Reimplemented from homeassistant.components.google_assistant.helpers.AbstractConfig.
| def homeassistant.components.google_assistant.http.GoogleConfig.get_local_user_id | ( | self, | |
| webhook_id | |||
| ) |
Map webhook ID to a Home Assistant user ID. Any action initiated by Google Assistant via the local SDK will be attributed to the returned user ID. Return None if no user id is found for the webhook_id.
Reimplemented from homeassistant.components.google_assistant.helpers.AbstractConfig.
| def homeassistant.components.google_assistant.http.GoogleConfig.get_local_webhook_id | ( | self, | |
| agent_user_id | |||
| ) |
Return the webhook ID to be used for actions for a given agent user id via the local SDK.
Reimplemented from homeassistant.components.google_assistant.helpers.AbstractConfig.
| def homeassistant.components.google_assistant.http.GoogleConfig.secure_devices_pin | ( | self | ) |
Return entity config.
Reimplemented from homeassistant.components.google_assistant.helpers.AbstractConfig.
| def homeassistant.components.google_assistant.http.GoogleConfig.should_2fa | ( | self, | |
| state | |||
| ) |
If an entity should have 2FA checked.
Reimplemented from homeassistant.components.google_assistant.helpers.AbstractConfig.
| bool homeassistant.components.google_assistant.http.GoogleConfig.should_expose | ( | self, | |
| state | |||
| ) |
Return if entity should be exposed.
Reimplemented from homeassistant.components.google_assistant.helpers.AbstractConfig.
| def homeassistant.components.google_assistant.http.GoogleConfig.should_report_state | ( | self | ) |
Return if states should be proactively reported.
Reimplemented from homeassistant.components.google_assistant.helpers.AbstractConfig.
|
private |
|
private |
|
private |
|
private |