You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardexpand all lines: bundles/org.openhab.binding.insteon/src/main/java/org/openhab/binding/insteon/internal/command/SceneCommand.java
Copy file name to clipboardexpand all lines: bundles/org.openhab.binding.insteon/src/main/java/org/openhab/binding/insteon/internal/device/InsteonScene.java
+13-22
Original file line number
Diff line number
Diff line change
@@ -133,11 +133,10 @@ public String toString() {
133
133
* @param entry the scene entry to add
134
134
*/
135
135
privatevoidaddEntry(SceneEntryentry) {
136
-
logger.trace("adding entry to scene {}: {}", group, entry);
137
-
138
136
synchronized (entries) {
139
137
if (entries.add(entry)) {
140
138
entry.register();
139
+
logger.trace("added entry to scene {}: {}", group, entry);
141
140
}
142
141
}
143
142
}
@@ -168,18 +167,14 @@ public void deleteEntries() {
168
167
* @param address the device address
169
168
*/
170
169
publicvoiddeleteEntries(InsteonAddressaddress) {
171
-
logger.trace("removing entries from scene {} for device {}", group, address);
172
-
173
170
getEntries(address).forEach(this::deleteEntry);
174
171
}
175
172
176
173
/**
177
174
* Updates all entries for this scene
178
175
*/
179
176
publicvoidupdateEntries() {
180
-
synchronized (entries) {
181
-
entries.clear();
182
-
}
177
+
deleteEntries();
183
178
184
179
InsteonModemmodem = getModem();
185
180
if (modem != null) {
@@ -204,7 +199,7 @@ public void updateEntries(InsteonDevice device) {
204
199
205
200
logger.trace("updating entries for scene {} device {}", group, address);
0 commit comments