Skip to content

Commit

Permalink
Ledvance LED panel: don't use explicit color_modes.
Browse files Browse the repository at this point in the history
Lights were defined with single value color_mode dps, but actual dp can
take other values also. This may cause unexpected behaviour and definitely
will cause errors in the log.

Since single function lights color mode can be detected based on which
dps are defined, rename it out of the way and let the auto detection work.

Further changes require more info on the dps, there is some info on
#2683, but so far only enough to enable separate switching of main and
backlight.

PR #2728
  • Loading branch information
make-all committed Jan 11, 2025
1 parent c30d7dd commit 9e62806
Showing 1 changed file with 2 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -12,10 +12,7 @@ entities:
name: switch
- id: 21
type: string
name: color_mode
mapping:
- dps_val: white
value: color_temp
name: work_mode
- id: 22
name: brightness
type: integer
Expand All @@ -40,10 +37,7 @@ entities:
name: switch
- id: 21
type: string
name: color_mode
mapping:
- dps_val: colour
value: hs
name: work_mode
- id: 24
type: hex
name: rgbhsv
Expand Down

0 comments on commit 9e62806

Please sign in to comment.