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: hhees <holger.hees@gmail.com>
  • Loading branch information
HolgerHees committed Jan 1, 2021
1 parent 7d6579a commit aea1601
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 aea1601

Please sign in to comment.