Fix double encoding issue in google_translate TTS (#38429)

This commit is contained in:
Franck Nijhof 2020-07-31 22:06:17 +02:00 committed by GitHub
parent f4c0dc99c2
commit 1c9a36b731
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -8,7 +8,6 @@ from aiohttp.hdrs import REFERER, USER_AGENT
import async_timeout
from gtts_token import gtts_token
import voluptuous as vol
import yarl
from homeassistant.components.tts import CONF_LANG, PLATFORM_SCHEMA, Provider
from homeassistant.const import HTTP_OK
@ -129,7 +128,7 @@ class GoogleProvider(Provider):
url_param = {
"ie": "UTF-8",
"tl": language,
"q": yarl.URL(part).raw_path,
"q": part,
"tk": part_token,
"total": len(message_parts),
"idx": idx,