mirror of
https://github.com/danieldemus/openhab-core.git
synced 2026-07-29 12:34:22 +02:00
Fix only first group config considered in persistence manager (#3618)
Signed-off-by: Jan N. Klug <github@klug.nrw>
This commit is contained in:
+2
-2
@@ -189,8 +189,8 @@ public class PersistenceManager implements ItemRegistryChangeListener, StateChan
|
||||
} else if (itemCfg instanceof PersistenceGroupConfig) {
|
||||
try {
|
||||
Item gItem = itemRegistry.getItem(((PersistenceGroupConfig) itemCfg).getGroup());
|
||||
if (gItem instanceof GroupItem) {
|
||||
return ((GroupItem) gItem).getAllMembers().contains(item);
|
||||
if (gItem instanceof GroupItem gItem2 && gItem2.getAllMembers().contains(item)) {
|
||||
return true;
|
||||
}
|
||||
} catch (ItemNotFoundException e) {
|
||||
// do nothing
|
||||
|
||||
Reference in New Issue
Block a user