Ensure sitemap subscriptions are updated on Group Items (#4552)

Signed-off-by: Dan Cunningham <dan@digitaldan.com>
pull/4556/head
Dan Cunningham 2025-01-10 23:41:05 -08:00 committed by GitHub
parent 6dffaa6a8c
commit f8d34d9882
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 2 additions and 1 deletions

View File

@ -74,6 +74,7 @@ import org.openhab.core.io.rest.sitemap.SitemapSubscriptionService.SitemapSubscr
import org.openhab.core.items.GenericItem;
import org.openhab.core.items.Item;
import org.openhab.core.items.ItemNotFoundException;
import org.openhab.core.items.events.GroupItemStateChangedEvent;
import org.openhab.core.items.events.ItemEvent;
import org.openhab.core.items.events.ItemStateChangedEvent;
import org.openhab.core.library.CoreItemFactory;
@ -918,7 +919,7 @@ public class SitemapResource
@Override
public Set<String> getSubscribedEventTypes() {
return Set.of(ItemStateChangedEvent.TYPE);
return Set.of(ItemStateChangedEvent.TYPE, GroupItemStateChangedEvent.TYPE);
}
@Override