Skip to content

Commit

Permalink
save config after name change
Browse files Browse the repository at this point in the history
  • Loading branch information
hendriksen-mark committed Jul 22, 2024
1 parent ea5e311 commit 0f68322
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions BridgeEmulator/flaskUI/v2restapi.py
Original file line number Diff line number Diff line change
Expand Up @@ -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"]}})
Expand Down

0 comments on commit 0f68322

Please sign in to comment.