Skip to content

Commit

Permalink
Update configHandler.py
Browse files Browse the repository at this point in the history
  • Loading branch information
hendriksen-mark committed Aug 10, 2024
1 parent 4837baa commit 7100277
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions BridgeEmulator/configManager/configHandler.py
Original file line number Diff line number Diff line change
Expand Up @@ -173,6 +173,8 @@ def load_config(self):
data["owner"] = self.yaml_config["apiUsers"][list(self.yaml_config["apiUsers"])[0]]
elif "owner" not in data:
data["owner"] = self.yaml_config["apiUsers"][list(self.yaml_config["apiUsers"])[0]]
else:
data["owner"] = self.yaml_config["apiUsers"][data["owner"]]
self.yaml_config["groups"][group] = Group.Group(data)
for light in data["lights"]:
self.yaml_config["groups"][group].add_light(self.yaml_config["lights"][light])
Expand Down

0 comments on commit 7100277

Please sign in to comment.