make Ruff happy

This commit is contained in:
2025-10-25 23:08:27 -04:00
parent fe5c0e23b5
commit 626c865461
7 changed files with 21 additions and 21 deletions

View File

@@ -6,6 +6,8 @@ import asyncio
import random
import os
from .groups import groups
from flask import (
Blueprint,
jsonify,
@@ -15,8 +17,6 @@ from flask import (
client = Blueprint("client", __name__)
from .groups import groups
client.register_blueprint(groups)
@@ -159,7 +159,7 @@ async def register():
"device_id": "VVOONNAA"
})
except:
except Exception:
pass
return jsonify({
@@ -342,7 +342,7 @@ async def sync():
if "timeout" in request.args:
try:
wait_time = int(request.args.get("timeout")) / 1000
except:
except Exception:
pass
await asyncio.sleep(wait_time)
@@ -420,7 +420,7 @@ async def events():
if "timeout" in request.args:
try:
await asyncio.sleep(int(request.args["timeout"]) / 1000)
except:
except Exception:
pass
return jsonify({