Classes | |
| class | CommandResponse |
| class | GoogleAssistantSDKAudioView |
| class | InMemoryStorage |
Functions | |
| list[CommandResponse] | async_send_text_commands (HomeAssistant hass, list[str] commands, list[str]|None media_players=None) |
| str | best_matching_language_code (HomeAssistant hass, str assist_language, str|None agent_language=None) |
| str | default_language_code (HomeAssistant hass) |
Variables | |
| _LOGGER = logging.getLogger(__name__) | |
| dictionary | DEFAULT_LANGUAGE_CODES |
Helper classes for Google Assistant SDK integration.
| list[CommandResponse] homeassistant.components.google_assistant_sdk.helpers.async_send_text_commands | ( | HomeAssistant | hass, |
| list[str] | commands, | ||
| list[str] | None | media_players = None |
||
| ) |
Send text commands to Google Assistant Service.
Definition at line 60 of file helpers.py.
| str homeassistant.components.google_assistant_sdk.helpers.best_matching_language_code | ( | HomeAssistant | hass, |
| str | assist_language, | ||
| str | None | agent_language = None |
||
| ) |
Get the best matching language, based on the preferred assist language and the configured agent language.
Definition at line 116 of file helpers.py.
| str homeassistant.components.google_assistant_sdk.helpers.default_language_code | ( | HomeAssistant | hass | ) |
Get default language code based on Home Assistant config.
Definition at line 108 of file helpers.py.
|
private |
Definition at line 39 of file helpers.py.
| dictionary homeassistant.components.google_assistant_sdk.helpers.DEFAULT_LANGUAGE_CODES |
Definition at line 41 of file helpers.py.