[insteon] Fix scene channel state updates (#18050)

Signed-off-by: Jeremy Setton <jeremy.setton@gmail.com>
This commit is contained in:
Jeremy 2025-01-06 15:51:11 -05:00 committed by Jacob Laursen
parent cac757ae81
commit 2a4fea2c1a
2 changed files with 2 additions and 2 deletions

View File

@ -78,7 +78,7 @@ public class InsteonBindingConstants {
public static final String FEATURE_ON_LEVEL = "onLevel"; public static final String FEATURE_ON_LEVEL = "onLevel";
public static final String FEATURE_PING = "ping"; public static final String FEATURE_PING = "ping";
public static final String FEATURE_RAMP_RATE = "rampRate"; public static final String FEATURE_RAMP_RATE = "rampRate";
public static final String FEATURE_SCENE_ON_OFF = "sceneOnOff"; public static final String FEATURE_SCENE = "scene";
public static final String FEATURE_STAY_AWAKE = "stayAwake"; public static final String FEATURE_STAY_AWAKE = "stayAwake";
public static final String FEATURE_TEMPERATURE_SCALE = "temperatureScale"; public static final String FEATURE_TEMPERATURE_SCALE = "temperatureScale";
public static final String FEATURE_TWO_GROUPS = "2Groups"; public static final String FEATURE_TWO_GROUPS = "2Groups";

View File

@ -184,7 +184,7 @@ public class InsteonSceneHandler extends InsteonBaseThingHandler {
public void updateState(State state) { public void updateState(State state) {
getThing().getChannels().stream().map(Channel::getUID) getThing().getChannels().stream().map(Channel::getUID)
.filter(channelUID -> FEATURE_SCENE_ON_OFF.equals(channelUID.getId())).findFirst() .filter(channelUID -> FEATURE_SCENE.equals(channelUID.getId())).findFirst()
.ifPresent(channelUID -> updateState(channelUID, state)); .ifPresent(channelUID -> updateState(channelUID, state));
} }
} }