diff --git a/BridgeEmulator/HueObjects/Group.py b/BridgeEmulator/HueObjects/Group.py index 383f06df2..6e8b81cdc 100644 --- a/BridgeEmulator/HueObjects/Group.py +++ b/BridgeEmulator/HueObjects/Group.py @@ -139,7 +139,7 @@ def update_state(self): else: all_on = False if any_on: - bri = (((bri/lights_on)/254)*100) + bri = (((bri/lights_on)/254)*100) if bri > 0 else 0 return {"all_on": all_on, "any_on": any_on, "avr_bri": int(bri)} def setV2Action(self, state):