Skip to content

Commit

Permalink
[insteon] Fix scene channel state updates (#18050)
Browse files Browse the repository at this point in the history
Signed-off-by: Jeremy Setton <jeremy.setton@gmail.com>
  • Loading branch information
jsetton authored Jan 6, 2025
1 parent 51b5c89 commit 8a442d9
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ public class InsteonBindingConstants {
public static final String FEATURE_ON_LEVEL = "onLevel";
public static final String FEATURE_PING = "ping";
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_TEMPERATURE_SCALE = "temperatureScale";
public static final String FEATURE_TWO_GROUPS = "2Groups";
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -184,7 +184,7 @@ public void updateStatus() {

public void updateState(State state) {
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));
}
}

0 comments on commit 8a442d9

Please sign in to comment.