Fix mix of aiohttp and requests in ZAMG (#74628)

pull/74689/head
Franck Nijhof 2022-07-07 16:59:49 +02:00 committed by Paulus Schoutsen
parent cd7f2eb73e
commit 0da09ba47e
1 changed files with 1 additions and 2 deletions

View File

@ -10,7 +10,6 @@ import logging
import os
from typing import Union
from aiohttp.hdrs import USER_AGENT
import requests
import voluptuous as vol
@ -275,7 +274,7 @@ class ZamgData:
"""The class for handling the data retrieval."""
API_URL = "http://www.zamg.ac.at/ogd/"
API_HEADERS = {USER_AGENT: f"home-assistant.zamg/ {__version__}"}
API_HEADERS = {"User-Agent": f"home-assistant.zamg/ {__version__}"}
def __init__(self, station_id):
"""Initialize the probe."""