Skip to content

Commit

Permalink
Update requests to 2.28.0 (home-assistant#73406)
Browse files Browse the repository at this point in the history
* Update requests to 2.28.0

* Fix mypy warning

* Fix Facebook messenger tests
  • Loading branch information
frenck authored Jun 14, 2022
1 parent 65378f1 commit 99db2a5
Show file tree
Hide file tree
Showing 6 changed files with 6 additions and 7 deletions.
3 changes: 1 addition & 2 deletions homeassistant/components/facebook/notify.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@
import json
import logging

from aiohttp.hdrs import CONTENT_TYPE
import requests
import voluptuous as vol

Expand Down Expand Up @@ -74,7 +73,7 @@ def send_message(self, message="", **kwargs):
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:
Expand Down
2 changes: 1 addition & 1 deletion homeassistant/components/neato/hub.py
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ def update_robots(self) -> None:

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:
Expand Down
2 changes: 1 addition & 1 deletion homeassistant/package_constraints.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down
2 changes: 1 addition & 1 deletion requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion requirements_test.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit 99db2a5

Please sign in to comment.