style: apply ruff format to main.py (task-9 follow-up)
This commit is contained in:
+6
-2
@@ -242,7 +242,9 @@ async def _run_poll_cycle() -> None:
|
|||||||
try:
|
try:
|
||||||
await _federation_client.post(
|
await _federation_client.post(
|
||||||
bell_clear_url,
|
bell_clear_url,
|
||||||
headers={"Authorization": f"Bearer {remote_key}"} if remote_key else {},
|
headers={"Authorization": f"Bearer {remote_key}"}
|
||||||
|
if remote_key
|
||||||
|
else {},
|
||||||
)
|
)
|
||||||
except Exception as exc:
|
except Exception as exc:
|
||||||
_log.warning(
|
_log.warning(
|
||||||
@@ -1093,7 +1095,9 @@ async def federation_terminal_ws_proxy(websocket: WebSocket, device_id: str) ->
|
|||||||
async with websockets.connect(
|
async with websockets.connect(
|
||||||
ws_url,
|
ws_url,
|
||||||
subprotocols=[Subprotocol("tty")],
|
subprotocols=[Subprotocol("tty")],
|
||||||
additional_headers={"Authorization": f"Bearer {remote_key}"} if remote_key else {},
|
additional_headers={"Authorization": f"Bearer {remote_key}"}
|
||||||
|
if remote_key
|
||||||
|
else {},
|
||||||
ssl=ssl_context,
|
ssl=ssl_context,
|
||||||
) as remote_ws:
|
) as remote_ws:
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user