mirror of
https://github.com/home-assistant/core.git
synced 2025-07-28 15:47:12 +00:00
Bump gassist-text to 0.0.14 (#148312)
This commit is contained in:
parent
0c783e87d1
commit
15c9ddea78
@ -80,10 +80,10 @@ async def async_send_text_commands(
|
|||||||
|
|
||||||
credentials = Credentials(session.token[CONF_ACCESS_TOKEN]) # type: ignore[no-untyped-call]
|
credentials = Credentials(session.token[CONF_ACCESS_TOKEN]) # type: ignore[no-untyped-call]
|
||||||
language_code = entry.options.get(CONF_LANGUAGE_CODE, default_language_code(hass))
|
language_code = entry.options.get(CONF_LANGUAGE_CODE, default_language_code(hass))
|
||||||
|
command_response_list = []
|
||||||
with TextAssistant(
|
with TextAssistant(
|
||||||
credentials, language_code, audio_out=bool(media_players)
|
credentials, language_code, audio_out=bool(media_players)
|
||||||
) as assistant:
|
) as assistant:
|
||||||
command_response_list = []
|
|
||||||
for command in commands:
|
for command in commands:
|
||||||
try:
|
try:
|
||||||
resp = await hass.async_add_executor_job(assistant.assist, command)
|
resp = await hass.async_add_executor_job(assistant.assist, command)
|
||||||
@ -117,7 +117,7 @@ async def async_send_text_commands(
|
|||||||
blocking=True,
|
blocking=True,
|
||||||
)
|
)
|
||||||
command_response_list.append(CommandResponse(text_response))
|
command_response_list.append(CommandResponse(text_response))
|
||||||
return command_response_list
|
return command_response_list
|
||||||
|
|
||||||
|
|
||||||
def default_language_code(hass: HomeAssistant) -> str:
|
def default_language_code(hass: HomeAssistant) -> str:
|
||||||
|
@ -7,6 +7,6 @@
|
|||||||
"documentation": "https://www.home-assistant.io/integrations/google_assistant_sdk",
|
"documentation": "https://www.home-assistant.io/integrations/google_assistant_sdk",
|
||||||
"integration_type": "service",
|
"integration_type": "service",
|
||||||
"iot_class": "cloud_polling",
|
"iot_class": "cloud_polling",
|
||||||
"requirements": ["gassist-text==0.0.12"],
|
"requirements": ["gassist-text==0.0.14"],
|
||||||
"single_config_entry": true
|
"single_config_entry": true
|
||||||
}
|
}
|
||||||
|
2
requirements_all.txt
generated
2
requirements_all.txt
generated
@ -989,7 +989,7 @@ gTTS==2.5.3
|
|||||||
gardena-bluetooth==1.6.0
|
gardena-bluetooth==1.6.0
|
||||||
|
|
||||||
# homeassistant.components.google_assistant_sdk
|
# homeassistant.components.google_assistant_sdk
|
||||||
gassist-text==0.0.12
|
gassist-text==0.0.14
|
||||||
|
|
||||||
# homeassistant.components.google
|
# homeassistant.components.google
|
||||||
gcal-sync==7.1.0
|
gcal-sync==7.1.0
|
||||||
|
2
requirements_test_all.txt
generated
2
requirements_test_all.txt
generated
@ -859,7 +859,7 @@ gTTS==2.5.3
|
|||||||
gardena-bluetooth==1.6.0
|
gardena-bluetooth==1.6.0
|
||||||
|
|
||||||
# homeassistant.components.google_assistant_sdk
|
# homeassistant.components.google_assistant_sdk
|
||||||
gassist-text==0.0.12
|
gassist-text==0.0.14
|
||||||
|
|
||||||
# homeassistant.components.google
|
# homeassistant.components.google
|
||||||
gcal-sync==7.1.0
|
gcal-sync==7.1.0
|
||||||
|
Loading…
x
Reference in New Issue
Block a user