Skip to content

Commit 1dab1ad

Browse files
authored
fix bug: KeyError: '0' missing for group 0
1 parent 0f06b77 commit 1dab1ad

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/core/webServer/server.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -575,7 +575,7 @@ def do_POST(self):
575575
post_dictionary["lightstates"] = {}
576576
if "lights" in post_dictionary:
577577
lights = post_dictionary["lights"]
578-
elif "group" in post_dictionary:
578+
elif "group" in post_dictionary and post_dictionary["group"] != "0":
579579
lights = bridge_config["groups"][post_dictionary["group"]]["lights"]
580580
for light in lights:
581581
post_dictionary["lightstates"][light] = {

0 commit comments

Comments
 (0)