From 0f6832207281c822d315f2b2a220ef85900f184a Mon Sep 17 00:00:00 2001 From: Mark Date: Tue, 23 Jul 2024 01:38:40 +0200 Subject: [PATCH] save config after name change --- BridgeEmulator/flaskUI/v2restapi.py | 1 + 1 file changed, 1 insertion(+) diff --git a/BridgeEmulator/flaskUI/v2restapi.py b/BridgeEmulator/flaskUI/v2restapi.py index 86b6a5791..5fa64c2d6 100644 --- a/BridgeEmulator/flaskUI/v2restapi.py +++ b/BridgeEmulator/flaskUI/v2restapi.py @@ -603,6 +603,7 @@ def put(self, resource, resourceid): if "metadata" in putDict: if "name" in putDict["metadata"]: bridgeConfig["config"]["name"] = putDict["metadata"]["name"] + configManager.bridgeConfig.save_config(backup=False, resource="config") elif resource == "motion": if "enabled" in putDict: object.update_attr({"config": {"on": putDict["enabled"]}})