mirror of
https://github.com/openhab/openhab-addons.git
synced 2025-01-10 15:11:59 +01:00
Correct Playlist vs Preset detection (#16146)
Signed-off-by: Matthew Skinner <matt@pcmus.com>
This commit is contained in:
parent
ca7d3b99c1
commit
706ae58323
@ -62,7 +62,7 @@ public class WledApiV0110 extends WledApiV084 {
|
||||
logger.trace("Preset:{} json:{}", presetEntry.getKey(), presetEntry.getValue());
|
||||
PresetState preset = gson.fromJson(presetEntry.getValue(), PresetState.class);
|
||||
if (preset != null && counter > 0) {
|
||||
if (preset.bri == 0) {
|
||||
if (presetEntry.getValue().toString().contains("playlist")) {
|
||||
playlistsOptions.add(new StateOption(presetEntry.getKey(), preset.n));
|
||||
} else {
|
||||
presetsOptions.add(new StateOption(presetEntry.getKey(), preset.n));
|
||||
|
Loading…
Reference in New Issue
Block a user