From 37ce94a31511494ecf9cd0433fd1c85e3fc97edd Mon Sep 17 00:00:00 2001 From: hhees Date: Thu, 31 Dec 2020 17:06:35 +0100 Subject: [PATCH] removed ItemStateEvent if case this will never happend, because these events are filtered out before --- .../org.openhab.ui.habpanel/web/app/services/openhab.service.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bundles/org.openhab.ui.habpanel/web/app/services/openhab.service.js b/bundles/org.openhab.ui.habpanel/web/app/services/openhab.service.js index 33ff0283fc..56981fcc8d 100755 --- a/bundles/org.openhab.ui.habpanel/web/app/services/openhab.service.js +++ b/bundles/org.openhab.ui.habpanel/web/app/services/openhab.service.js @@ -169,7 +169,7 @@ var evtdata = JSON.parse(event.data); var topicparts = evtdata.topic.split('/'); - if (evtdata.type === 'ItemStateEvent' || evtdata.type === 'ItemStateChangedEvent' || evtdata.type === 'GroupItemStateChangedEvent') { + if (evtdata.type === 'ItemStateChangedEvent' || evtdata.type === 'GroupItemStateChangedEvent') { var payload = JSON.parse(evtdata.payload); var newstate = payload.value; var item = $filter('filter')($rootScope.items, {name: topicparts[2]}, true)[0];