mirror of
https://github.com/openhab/openhab-addons.git
synced 2025-01-25 14:55:55 +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;
|
leapButtonMap = KeypadConfigPico.LEAPBUTTONS_3BRL;
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
leapButtonInverseMap = leapButtonMap.entrySet().stream()
|
if (getBridgeHandler() instanceof LeapBridgeHandler) {
|
||||||
.collect(Collectors.toMap(Entry::getValue, Entry::getKey));
|
leapButtonInverseMap = leapButtonMap.entrySet().stream()
|
||||||
|
.collect(Collectors.toMap(Entry::getValue, Entry::getKey));
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user