Skip to content

Commit

Permalink
Fix brightness on 0x62. Suddenly notifications are working.
Browse files Browse the repository at this point in the history
  • Loading branch information
8none1 committed Dec 13, 2024
1 parent 3b04fc0 commit 003ad94
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion custom_components/lednetwf_ble/models/model_0x62.py
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,8 @@ def __init__(self, manu_data):
effect = self.manu_data[15]
self.effect = EFFECT_ID_TO_NAME_0x62[effect]
self.effect_speed = self.manu_data[17]
self.brightness = int(self.manu_data[18] * 255 // 100)
# self.brightness = int(self.manu_data[18] * 255 // 100)
self.brightness = int(self.manu_data[18])
self.color_mode = ColorMode.BRIGHTNESS
self.is_on = True

Expand Down

0 comments on commit 003ad94

Please sign in to comment.