Skip to content

Commit 55987ab

Browse files
committed
fix group exclude
Signed-off-by: Mark Herwege <mark.herwege@telenet.be>
1 parent e065bea commit 55987ab

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

bundles/org.openhab.core.persistence/src/main/java/org/openhab/core/persistence/internal/PersistenceManagerImpl.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -227,7 +227,7 @@ private boolean appliesToItem(PersistenceItemConfiguration itemConfig, Item item
227227
} else if (itemCfg instanceof PersistenceGroupExcludeConfig persistenceGroupExcludeConfig) {
228228
try {
229229
Item gItem = itemRegistry.getItem(persistenceGroupExcludeConfig.getGroup());
230-
if (gItem instanceof GroupItem gItem2 && gItem2.getAllMembers().contains(item)) {
230+
if (gItem instanceof GroupItem gItem2 && gItem2.getAllStateMembers().contains(item)) {
231231
return false;
232232
}
233233
} catch (ItemNotFoundException e) {
@@ -279,7 +279,7 @@ private Iterable<Item> getAllItems(PersistenceItemConfiguration config) {
279279
try {
280280
Item gItem = itemRegistry.getItem(groupName);
281281
if (gItem instanceof GroupItem groupItem) {
282-
excludeItems.addAll(groupItem.getAllMembers());
282+
excludeItems.addAll(groupItem.getAllStateMembers());
283283
}
284284
} catch (ItemNotFoundException e) {
285285
logger.debug("Item group '{}' does not exist.", groupName);

0 commit comments

Comments
 (0)