Skip to content

Commit

Permalink
fix: stop enabling trigger-state node on connection to HA
Browse files Browse the repository at this point in the history
Fixes: #261
  • Loading branch information
zachowj committed Sep 12, 2020
1 parent 64d1b45 commit cba1aad
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion lib/events-ha-node.js
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,9 @@ class EventsHaNode extends EventsNode {
switch (type) {
case INTEGRATION_UNLOADED:
case INTEGRATION_NOT_LOADED:
this.isEnabled = true;
if (this.type !== 'trigger-state') {
this.isEnabled = true;
}
this.removeSubscription();
this.updateConnectionStatus();
break;
Expand Down

0 comments on commit cba1aad

Please sign in to comment.