Refactor LED control UI to Vue3
This commit is contained in:
@@ -90,6 +90,19 @@ async def output_ws(websocket: WebSocket, tile_id: str) -> None:
|
||||
node_id = str(raw.get("node_id") or node_id or "")
|
||||
sync.clock_quality(node_id, raw.get("clock_offset_ms"), raw.get("rtt_ms"))
|
||||
record = sync.ack(raw)
|
||||
release_record = None
|
||||
if record and raw.get("status") == "prepared":
|
||||
release_record = sync.release_if_prepared(record.command_id)
|
||||
if release_record:
|
||||
await hub.broadcast(
|
||||
CommandEnvelope(
|
||||
type=CommandType.COMMIT_SCENE,
|
||||
command_id=release_record.command_id,
|
||||
payload=release_record.payload,
|
||||
),
|
||||
"admin",
|
||||
"outputs",
|
||||
)
|
||||
await hub.broadcast(
|
||||
CommandEnvelope(
|
||||
type=CommandType.ACK,
|
||||
|
||||
Reference in New Issue
Block a user