Skip to content

Commit 04e610c

Browse files
committed
Format with black
1 parent 39133f9 commit 04e610c

2 files changed

Lines changed: 9 additions & 3 deletions

File tree

pyControl4/account.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -250,7 +250,9 @@ async def get_controller_os_version(self, controller_href: str) -> str:
250250
_LOGGER.error(msg + " Response: " + data)
251251
raise
252252

253-
async def get_director_bearer_token(self, controller_common_name: str) -> dict[str, Any]:
253+
async def get_director_bearer_token(
254+
self, controller_common_name: str
255+
) -> dict[str, Any]:
254256
"""Returns a dictionary with a director bearer token for making Control4
255257
Director API requests, and its time valid in seconds (usually 86400 seconds)
256258

pyControl4/websocket.py

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,8 +27,12 @@ def __init__(self, *args: Any, **kwargs: Any) -> None:
2727
self.token: str = kwargs.pop("token")
2828
self.callback: Callable[..., Any] = kwargs.pop("callback")
2929
self.session: aiohttp.ClientSession | None = kwargs.pop("session")
30-
self.connect_callback: Callable[..., Any] | None = kwargs.pop("connect_callback")
31-
self.disconnect_callback: Callable[..., Any] | None = kwargs.pop("disconnect_callback")
30+
self.connect_callback: Callable[..., Any] | None = kwargs.pop(
31+
"connect_callback"
32+
)
33+
self.disconnect_callback: Callable[..., Any] | None = kwargs.pop(
34+
"disconnect_callback"
35+
)
3236
super().__init__(*args, **kwargs)
3337
self.uri = _NAMESPACE_URI
3438
self.subscription_id: str | None = None

0 commit comments

Comments
 (0)