update:更新python部分“动态更新配置”

This commit is contained in:
CGD
2025-04-29 15:25:03 +08:00
parent ac0ec6dfe6
commit f1b4b33727
2 changed files with 55 additions and 14 deletions
@@ -62,7 +62,7 @@ async def handleTextMessage(conn, message):
if "states" in msg_json:
asyncio.create_task(handleIotStatus(conn, msg_json["states"]))
elif msg_json["type"] == "server":
if "model" in msg_json:
if msg_json["action"] == "update_config":
await conn.handle_config_update(msg_json)
except json.JSONDecodeError:
await conn.websocket.send(message)