"""Device status WebSocket broadcasts (ESP-NOW has no live TCP session)."""

import asyncio
import json

_ws_clients: set = set()


async def register_device_status_ws(ws):
    _ws_clients.add(ws)


async def unregister_device_status_ws(ws):
    _ws_clients.discard(ws)


async def broadcast_device_tcp_snapshot_to(ws):
    await ws.send(json.dumps({"type": "device_tcp_snapshot", "devices": {}}))


async def broadcast_device_tcp_status(mac: str, connected: bool):
    pass
