Skip to content

Commit

Permalink
fix: 'Light' object is not callable
Browse files Browse the repository at this point in the history
  • Loading branch information
mariusmotea committed Sep 25, 2024
1 parent c56afba commit 87ee0bc
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions BridgeEmulator/HueObjects/Group.py
Original file line number Diff line number Diff line change
Expand Up @@ -131,8 +131,8 @@ def update_state(self):
light = device().firstElement()
if light.state["on"]:
any_on = True
if "bri" in light().state:
bri = bri + light().state["bri"]
if "bri" in light.state:
bri = bri + light.state["bri"]
lights_on = lights_on + 1
else:
all_on = False
Expand Down

0 comments on commit 87ee0bc

Please sign in to comment.