Skip to content

Commit

Permalink
Merge pull request #3 from flobbe/main
Browse files Browse the repository at this point in the history
When deactivating all modes, only reactivate the "stay on" mode, not all of them.
  • Loading branch information
JurajNyiri authored Dec 7, 2024
2 parents b58083d + a293909 commit a89ee32
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion custom_components/lights_app/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,7 @@ def transformModeToHex(currentMode):
for key, value in currentMode.items():
binaryStr += "1" if value else "0"
if binaryStr == "0000000":
binaryStr = "10000000"
binaryStr = "1000000"
hex_byte = bytearray([int(binaryStr, 2)])
return hex_byte

Expand Down

0 comments on commit a89ee32

Please sign in to comment.