Skip to content

Commit

Permalink
prevent forcing Level to 1 for Profalux blinds (#1754)
Browse files Browse the repository at this point in the history
  • Loading branch information
pipiche38 authored Jul 8, 2024
1 parent 3fc8359 commit e5c5c56
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions Modules/domoMaj.py
Original file line number Diff line number Diff line change
Expand Up @@ -1639,6 +1639,7 @@ def normalized_lvl_value( switchType, value ):
normalized_value = 0
if normalized_value == 99 and analog_value == 254:
normalized_value = 100
return normalized_value

return max(normalized_value, 1) # Ensure normalized value is at least 1

Expand Down

0 comments on commit e5c5c56

Please sign in to comment.