Skip to content

Commit

Permalink
Correct Playlist vs Preset detection (openhab#16146)
Browse files Browse the repository at this point in the history
Signed-off-by: Matthew Skinner <[email protected]>
  • Loading branch information
Skinah authored Dec 31, 2023
1 parent ca7d3b9 commit 706ae58
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ protected void getPresets() throws JsonSyntaxException, ApiException {
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));
Expand Down

0 comments on commit 706ae58

Please sign in to comment.