Skip to content

Commit

Permalink
Update __init__.py to fix out of range index values generated by X/Y/…
Browse files Browse the repository at this point in the history
…Z = 0 Entertainment Areas created by music sync apps (#968)

Fixes automatically created entertainment areas containing LCX004/LCX006 Gradient Strips
  • Loading branch information
igorcv88 committed Dec 5, 2023
1 parent f4ecd48 commit 2619e79
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion BridgeEmulator/HueObjects/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -881,8 +881,9 @@ def getV2Api(self):
if light().modelid in ["LCX001", "LCX002", "LCX003"]:
loops = len(gradienStripPositions)
elif light().modelid in ["915005987201", "LCX004", "LCX006"]:
loops = 3
loops = len(self.locations[light()])
for x in range(loops):
print("x:", x)
channel = {
"channel_id": channel_id,
"members": [
Expand Down

0 comments on commit 2619e79

Please sign in to comment.