Skip to content

Commit

Permalink
[lutron] Fix Pico buttons for non-LEAP bridges (openhab#17204)
Browse files Browse the repository at this point in the history
Signed-off-by: Cody Cutrer <[email protected]>
  • Loading branch information
ccutrer authored Aug 4, 2024
1 parent fe0b1f8 commit e26116f
Showing 1 changed file with 4 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,9 @@ protected void configureComponents(@Nullable String model) {
leapButtonMap = KeypadConfigPico.LEAPBUTTONS_3BRL;
break;
}
leapButtonInverseMap = leapButtonMap.entrySet().stream()
.collect(Collectors.toMap(Entry::getValue, Entry::getKey));
if (getBridgeHandler() instanceof LeapBridgeHandler) {
leapButtonInverseMap = leapButtonMap.entrySet().stream()
.collect(Collectors.toMap(Entry::getValue, Entry::getKey));
}
}
}

0 comments on commit e26116f

Please sign in to comment.