Fix clicksend request content type headers (#74189)

pull/74213/head^2
Franck Nijhof 2022-06-30 03:43:14 +02:00 committed by GitHub
parent 42533ebbb3
commit f721b9e3df
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 2 deletions

View File

@ -3,7 +3,6 @@ from http import HTTPStatus
import json
import logging
from aiohttp.hdrs import CONTENT_TYPE
import requests
import voluptuous as vol
@ -23,7 +22,7 @@ BASE_API_URL = "https://rest.clicksend.com/v3"
DEFAULT_SENDER = "hass"
TIMEOUT = 5
HEADERS = {CONTENT_TYPE: CONTENT_TYPE_JSON}
HEADERS = {"Content-Type": CONTENT_TYPE_JSON}
PLATFORM_SCHEMA = vol.Schema(