Skip to content

Commit 667306c

Browse files
authored
Merge pull request #165 from elad-bar/fix-https-requests
Fix HTTPS requests
2 parents 6f5f810 + 21dea0f commit 667306c

File tree

2 files changed

+6
-3
lines changed

2 files changed

+6
-3
lines changed

CHANGELOG.md

+3-2
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,9 @@
22

33
## 2.0.3
44

5-
- Add support for `inktank` cartridge type
6-
- Add sensor of total printed pages per consumable, available for toner only
5+
- Add support for `inktank` cartridge type [#162](https://github.com/elad-bar/ha-hpprinter/issues/162)
6+
- Add sensor of total printed pages per consumable, available for toner only [#129](https://github.com/elad-bar/ha-hpprinter/issues/129)
7+
- Fix HTTPS requests [#160](https://github.com/elad-bar/ha-hpprinter/issues/160)
78

89
## 2.0.2
910

custom_components/hpprinter/managers/rest_api.py

+3-1
Original file line numberDiff line numberDiff line change
@@ -389,7 +389,9 @@ async def _get_request(
389389

390390
timeout = ClientTimeout(total=5)
391391

392-
async with self._session.get(url, timeout=timeout) as response:
392+
async with self._session.get(
393+
url, timeout=timeout, verify_ssl=False
394+
) as response:
393395
response.raise_for_status()
394396

395397
if response.content_type == "application/javascript":

0 commit comments

Comments
 (0)