mirror of
https://github.com/openhab/openhab-addons.git
synced 2025-01-10 15:11:59 +01:00
[lutron] Fix Pico buttons for non-LEAP bridges (#17204)
Signed-off-by: Cody Cutrer <cody@cutrer.us> Signed-off-by: Ciprian Pascu <contact@ciprianpascu.ro>
This commit is contained in:
parent
3eff0108df
commit
8ecc36436f
@ -69,7 +69,9 @@ public class PicoKeypadHandler extends BaseKeypadHandler {
|
||||
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));
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user