Skip to content

Commit

Permalink
Fix double encoding issue in google_translate TTS (#38429)
Browse files Browse the repository at this point in the history
  • Loading branch information
frenck authored Jul 31, 2020
1 parent f4c0dc9 commit 1c9a36b
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions homeassistant/components/google_translate/tts.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@
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
Expand Down Expand Up @@ -129,7 +128,7 @@ async def async_get_tts_audio(self, message, language, options=None):
url_param = {
"ie": "UTF-8",
"tl": language,
"q": yarl.URL(part).raw_path,
"q": part,
"tk": part_token,
"total": len(message_parts),
"idx": idx,
Expand Down

0 comments on commit 1c9a36b

Please sign in to comment.