Ruff: Add and fix UP rules

This commit is contained in:
Josh Wu
2026-01-01 03:07:06 +08:00
parent 8e28f4e159
commit 3f643de4c1
102 changed files with 922 additions and 999 deletions

View File

@@ -19,7 +19,6 @@ import asyncio
import json
import secrets
import sys
from typing import Optional
import websockets.asyncio.server
@@ -110,7 +109,7 @@ async def main() -> None:
vcs = VolumeControlService()
device.add_service(vcs)
ws: Optional[websockets.asyncio.server.ServerConnection] = None
ws: websockets.asyncio.server.ServerConnection | None = None
def on_volume_state_change():
if ws: