mirror of
https://github.com/home-assistant/core.git
synced 2025-07-23 13:17:32 +00:00
Update google_translate to use async_add_executor_job (#41925)
This commit is contained in:
parent
c9ba5bfebd
commit
83af805522
@ -123,7 +123,9 @@ class GoogleProvider(Provider):
|
||||
|
||||
data = b""
|
||||
for idx, part in enumerate(message_parts):
|
||||
part_token = await self.hass.async_add_job(token.calculate_token, part)
|
||||
part_token = await self.hass.async_add_executor_job(
|
||||
token.calculate_token, part
|
||||
)
|
||||
|
||||
url_param = {
|
||||
"ie": "UTF-8",
|
||||
|
Loading…
x
Reference in New Issue
Block a user