mirror of
https://github.com/home-assistant/core.git
synced 2025-07-13 16:27:08 +00:00
Fix clicksend request content type headers (#74189)
This commit is contained in:
parent
42533ebbb3
commit
f721b9e3df
@ -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
|
||||||
|
|
||||||
@ -23,7 +22,7 @@ BASE_API_URL = "https://rest.clicksend.com/v3"
|
|||||||
DEFAULT_SENDER = "hass"
|
DEFAULT_SENDER = "hass"
|
||||||
TIMEOUT = 5
|
TIMEOUT = 5
|
||||||
|
|
||||||
HEADERS = {CONTENT_TYPE: CONTENT_TYPE_JSON}
|
HEADERS = {"Content-Type": CONTENT_TYPE_JSON}
|
||||||
|
|
||||||
|
|
||||||
PLATFORM_SCHEMA = vol.Schema(
|
PLATFORM_SCHEMA = vol.Schema(
|
||||||
|
Loading…
x
Reference in New Issue
Block a user