style: apply ruff format to main.py (task-9 follow-up)

This commit is contained in:
Brian Krabach
2026-04-15 12:42:56 -07:00
parent 8d7990b1c5
commit 665b74b455
+6 -2
View File
@@ -242,7 +242,9 @@ async def _run_poll_cycle() -> None:
try:
await _federation_client.post(
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:
_log.warning(
@@ -1093,7 +1095,9 @@ async def federation_terminal_ws_proxy(websocket: WebSocket, device_id: str) ->
async with websockets.connect(
ws_url,
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,
) as remote_ws: