Skip to content

Commit

Permalink
Fix HTTPS requests
Browse files Browse the repository at this point in the history
  • Loading branch information
elad-bar committed Jun 20, 2024
1 parent 6f5f810 commit 21dea0f
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
5 changes: 3 additions & 2 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,9 @@

## 2.0.3

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

## 2.0.2

Expand Down
4 changes: 3 additions & 1 deletion custom_components/hpprinter/managers/rest_api.py
Original file line number Diff line number Diff line change
Expand Up @@ -389,7 +389,9 @@ async def _get_request(

timeout = ClientTimeout(total=5)

async with self._session.get(url, timeout=timeout) as response:
async with self._session.get(
url, timeout=timeout, verify_ssl=False
) as response:
response.raise_for_status()

if response.content_type == "application/javascript":
Expand Down

0 comments on commit 21dea0f

Please sign in to comment.