Skip to content

Commit

Permalink
fix bug: KeyError: '0' missing for group 0
Browse files Browse the repository at this point in the history
  • Loading branch information
mariusmotea authored Nov 30, 2020
1 parent 0f06b77 commit 1dab1ad
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/core/webServer/server.py
Original file line number Diff line number Diff line change
Expand Up @@ -575,7 +575,7 @@ def do_POST(self):
post_dictionary["lightstates"] = {}
if "lights" in post_dictionary:
lights = post_dictionary["lights"]
elif "group" in post_dictionary:
elif "group" in post_dictionary and post_dictionary["group"] != "0":
lights = bridge_config["groups"][post_dictionary["group"]]["lights"]
for light in lights:
post_dictionary["lightstates"][light] = {
Expand Down

0 comments on commit 1dab1ad

Please sign in to comment.