mirror of
https://github.com/home-assistant/core.git
synced 2025-04-23 16:57:53 +00:00
Update requests to 2.28.0 (#73406)
* Update requests to 2.28.0 * Fix mypy warning * Fix Facebook messenger tests
This commit is contained in:
parent
65378f19c8
commit
99db2a5afe
@ -3,7 +3,6 @@ from http import HTTPStatus
|
||||
import json
|
||||
import logging
|
||||
|
||||
from aiohttp.hdrs import CONTENT_TYPE
|
||||
import requests
|
||||
import voluptuous as vol
|
||||
|
||||
@ -74,7 +73,7 @@ class FacebookNotificationService(BaseNotificationService):
|
||||
BASE_URL,
|
||||
data=json.dumps(body),
|
||||
params=payload,
|
||||
headers={CONTENT_TYPE: CONTENT_TYPE_JSON},
|
||||
headers={"Content-Type": CONTENT_TYPE_JSON},
|
||||
timeout=10,
|
||||
)
|
||||
if resp.status_code != HTTPStatus.OK:
|
||||
|
@ -32,7 +32,7 @@ class NeatoHub:
|
||||
|
||||
def download_map(self, url: str) -> HTTPResponse:
|
||||
"""Download a new map image."""
|
||||
map_image_data = self.my_neato.get_map_image(url)
|
||||
map_image_data: HTTPResponse = self.my_neato.get_map_image(url)
|
||||
return map_image_data
|
||||
|
||||
async def async_update_entry_unique_id(self, entry: ConfigEntry) -> str:
|
||||
|
@ -27,7 +27,7 @@ pyserial==3.5
|
||||
python-slugify==4.0.1
|
||||
pyudev==0.22.0
|
||||
pyyaml==6.0
|
||||
requests==2.27.1
|
||||
requests==2.28.0
|
||||
scapy==2.4.5
|
||||
sqlalchemy==1.4.37
|
||||
typing-extensions>=3.10.0.2,<5.0
|
||||
|
@ -44,7 +44,7 @@ dependencies = [
|
||||
"pip>=21.0,<22.2",
|
||||
"python-slugify==4.0.1",
|
||||
"pyyaml==6.0",
|
||||
"requests==2.27.1",
|
||||
"requests==2.28.0",
|
||||
"typing-extensions>=3.10.0.2,<5.0",
|
||||
"voluptuous==0.13.1",
|
||||
"voluptuous-serialize==2.5.0",
|
||||
|
@ -18,7 +18,7 @@ cryptography==36.0.2
|
||||
pip>=21.0,<22.2
|
||||
python-slugify==4.0.1
|
||||
pyyaml==6.0
|
||||
requests==2.27.1
|
||||
requests==2.28.0
|
||||
typing-extensions>=3.10.0.2,<5.0
|
||||
voluptuous==0.13.1
|
||||
voluptuous-serialize==2.5.0
|
||||
|
@ -42,6 +42,6 @@ types-pkg-resources==0.1.3
|
||||
types-python-slugify==0.1.2
|
||||
types-pytz==2021.1.2
|
||||
types-PyYAML==5.4.6
|
||||
types-requests==2.25.1
|
||||
types-requests==2.27.30
|
||||
types-toml==0.1.5
|
||||
types-ujson==0.1.1
|
||||
|
Loading…
x
Reference in New Issue
Block a user