mirror of
https://github.com/danieldemus/openhab-addons
synced 2026-07-31 13:34:22 +02:00
[insteon] Fix scene channels not responding after modem db reload (#18464)
Signed-off-by: Jeremy Setton <jeremy.setton@gmail.com>
This commit is contained in:
+5
@@ -317,6 +317,11 @@ public abstract class InsteonBaseThingHandler extends BaseThingHandler implement
|
||||
.forEach(this::channelLinked);
|
||||
}
|
||||
|
||||
protected void unlinkChannels() {
|
||||
getThing().getChannels().stream().map(Channel::getUID).filter(channelHandlers::containsKey)
|
||||
.forEach(this::channelUnlinked);
|
||||
}
|
||||
|
||||
@Override
|
||||
public void refresh() {
|
||||
InsteonModem modem = getModem();
|
||||
|
||||
+1
@@ -131,6 +131,7 @@ public class InsteonSceneHandler extends InsteonBaseThingHandler {
|
||||
if (scene != null) {
|
||||
scene.setModem(null);
|
||||
}
|
||||
unlinkChannels();
|
||||
}
|
||||
|
||||
@Override
|
||||
|
||||
Reference in New Issue
Block a user