Skip to content

Commit c9bfff1

Browse files
author
Boris Fersing
committed
Merge branch 'move_oauth2_to_hilo' of github.com:fersingb/python-hilo into move_oauth2_to_hilo
2 parents 438e1ea + f4441c5 commit c9bfff1

File tree

5 files changed

+4
-8
lines changed

5 files changed

+4
-8
lines changed

pyhilo/api.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -384,7 +384,7 @@ async def _async_post_init(self) -> None:
384384
# instantiate differently
385385
self.websocket_devices = WebsocketClient(self.websocket_manager.devicehub)
386386

387-
# For backward compatibility during the transition to challengehub websocket
387+
# For backward compatibility during the transition to challengehub websocket
388388
self.websocket = self.websocket_devices
389389
self.websocket_challenges = WebsocketClient(self.websocket_manager.challengehub)
390390

pyhilo/const.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
LOG: Final = logging.getLogger(__package__)
88
DEFAULT_STATE_FILE: Final = "hilo_state.yaml"
99
REQUEST_RETRY: Final = 9
10-
PYHILO_VERSION: Final = "2024.10.02"
10+
PYHILO_VERSION: Final = "2025.2.02"
1111
# TODO: Find a way to keep previous line in sync with pyproject.toml automatically
1212

1313
CONTENT_TYPE_FORM: Final = "application/x-www-form-urlencoded"

pyhilo/oauth2.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,6 @@
1010
from homeassistant.helpers.config_entry_oauth2_flow import LocalOAuth2Implementation
1111

1212
from pyhilo.const import AUTH_AUTHORIZE, AUTH_CLIENT_ID, AUTH_TOKEN, DOMAIN
13-
1413
from pyhilo.oauth2helper import OAuth2Helper
1514

1615

pyhilo/oauth2helper.py

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@
44
import re
55
from typing import Any, cast
66

7-
87
from pyhilo.const import (
98
AUTH_AUTHORIZE,
109
AUTH_CHALLENGE_METHOD,
@@ -36,7 +35,7 @@ def get_authorize_parameters(self):
3635
"code_challenge": self._code_challenge,
3736
"code_challenge_method": AUTH_CHALLENGE_METHOD,
3837
"response_type": "code",
39-
"client_id": AUTH_CLIENT_ID
38+
"client_id": AUTH_CLIENT_ID,
4039
}
4140

4241
def get_token_request_parameters(self, code, redirect_uri):
@@ -46,5 +45,3 @@ def get_token_request_parameters(self, code, redirect_uri):
4645
"redirect_uri": redirect_uri,
4746
"code_verifier": self._code_verifier,
4847
}
49-
50-

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ exclude = ".venv/.*"
4040

4141
[tool.poetry]
4242
name = "python-hilo"
43-
version = "2024.10.2"
43+
version = "2025.2.2"
4444
description = "A Python3, async interface to the Hilo API"
4545
readme = "README.md"
4646
authors = ["David Vallee Delisle <[email protected]>"]

0 commit comments

Comments
 (0)