mirror of
https://github.com/home-assistant/core.git
synced 2025-07-19 19:27:45 +00:00
Fix mix of aiohttp and requests in ClickSend TTS (#74985)
This commit is contained in:
parent
ce353460b3
commit
66e27945ac
@ -3,7 +3,6 @@ from http import HTTPStatus
|
|||||||
import json
|
import json
|
||||||
import logging
|
import logging
|
||||||
|
|
||||||
from aiohttp.hdrs import CONTENT_TYPE
|
|
||||||
import requests
|
import requests
|
||||||
import voluptuous as vol
|
import voluptuous as vol
|
||||||
|
|
||||||
@ -20,7 +19,7 @@ _LOGGER = logging.getLogger(__name__)
|
|||||||
|
|
||||||
BASE_API_URL = "https://rest.clicksend.com/v3"
|
BASE_API_URL = "https://rest.clicksend.com/v3"
|
||||||
|
|
||||||
HEADERS = {CONTENT_TYPE: CONTENT_TYPE_JSON}
|
HEADERS = {"Content-Type": CONTENT_TYPE_JSON}
|
||||||
|
|
||||||
CONF_LANGUAGE = "language"
|
CONF_LANGUAGE = "language"
|
||||||
CONF_VOICE = "voice"
|
CONF_VOICE = "voice"
|
||||||
|
Loading…
x
Reference in New Issue
Block a user