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 <cody@cutrer.us>
  • Loading branch information
ccutrer authored and matchews committed Oct 18, 2024
1 parent e6ace2d commit 7a18db8
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 7a18db8

Please sign in to comment.