mirror of
https://github.com/home-assistant/core.git
synced 2025-07-21 12:17:07 +00:00
Move imports to top for google_translate (#29499)
This commit is contained in:
parent
009e4df6ef
commit
e9917c6a81
@ -6,6 +6,7 @@ import re
|
||||
import aiohttp
|
||||
from aiohttp.hdrs import REFERER, USER_AGENT
|
||||
import async_timeout
|
||||
from gtts_token import gtts_token
|
||||
import voluptuous as vol
|
||||
import yarl
|
||||
|
||||
@ -115,7 +116,6 @@ class GoogleProvider(Provider):
|
||||
|
||||
async def async_get_tts_audio(self, message, language, options=None):
|
||||
"""Load TTS from google."""
|
||||
from gtts_token import gtts_token
|
||||
|
||||
token = gtts_token.Token()
|
||||
websession = async_get_clientsession(self.hass)
|
||||
|
Loading…
x
Reference in New Issue
Block a user