mirror of
https://github.com/openhab/openhab-addons.git
synced 2025-01-10 07:02:02 +01:00
[insteon] Fix led command stack overflow error (#17977)
Signed-off-by: jsetton <jeremy.setton@gmail.com>
This commit is contained in:
parent
c31bcb2026
commit
bbdf3e3479
@ -1460,8 +1460,8 @@ public abstract class CommandHandler extends BaseFeatureHandler {
|
||||
}
|
||||
|
||||
private void setLEDOnOff(InsteonChannelConfiguration config, Command cmd) {
|
||||
State state = getInsteonDevice().getFeatureState(FEATURE_LED_ON_OFF);
|
||||
if (!((State) cmd).equals(state)) {
|
||||
DeviceFeature feature = getInsteonDevice().getFeature(FEATURE_LED_ON_OFF);
|
||||
if (feature != null) {
|
||||
feature.handleCommand(config, cmd);
|
||||
}
|
||||
}
|
||||
@ -2187,8 +2187,8 @@ public abstract class CommandHandler extends BaseFeatureHandler {
|
||||
}
|
||||
|
||||
private void setLEDControl(InsteonChannelConfiguration config) {
|
||||
State state = getInsteonModem().getFeatureState(FEATURE_LED_CONTROL);
|
||||
if (!OnOffType.ON.equals(state)) {
|
||||
DeviceFeature feature = getInsteonModem().getFeature(FEATURE_LED_CONTROL);
|
||||
if (feature != null) {
|
||||
feature.handleCommand(config, OnOffType.ON);
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user