Skip to content

Commit

Permalink
removed ItemStateEvent if case
Browse files Browse the repository at this point in the history
this will never happend, because these events are filtered out before

Signed-off-by: Holger Hees <holger.hees@gmail.com> (github: github_handle)
  • Loading branch information
HolgerHees committed Dec 31, 2020
1 parent 7d6579a commit ae822f2
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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];
Expand Down

0 comments on commit ae822f2

Please sign in to comment.