We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent aa8e05f commit 9741434Copy full SHA for 9741434
bundles/org.openhab.core/src/main/java/org/openhab/core/items/GroupItem.java
@@ -141,7 +141,8 @@ public Set<Item> getAllMembers() {
141
* @return all members of this and all contained {@link GroupItem}s
142
*/
143
public Set<Item> getAllStateMembers() {
144
- return Collections.unmodifiableSet(new LinkedHashSet<>(getStateMembers(getMembers())));
+ return Collections.unmodifiableSet(
145
+ new LinkedHashSet<>(getMembers((Item i) -> !(i instanceof GroupItem) || hasOwnState((GroupItem) i))));
146
}
147
148
private void collectMembers(Collection<Item> allMembers, Collection<Item> members) {
0 commit comments