From b02374a71bfdd69d1f255876f4a66afdc0961bcc Mon Sep 17 00:00:00 2001 From: Jon Ziebell Date: Wed, 19 Jun 2019 21:06:50 -0400 Subject: [PATCH] Fixed #125 - Removed sensors are not being properly removed Forgot to remove the inactive sensors from the polling. --- js/beestat/poll.js | 28 ++++++++++++++++++++++++---- 1 file changed, 24 insertions(+), 4 deletions(-) diff --git a/js/beestat/poll.js b/js/beestat/poll.js index d82ac22..a8081d7 100644 --- a/js/beestat/poll.js +++ b/js/beestat/poll.js @@ -46,22 +46,42 @@ beestat.poll = function() { { 'resource': 'thermostat', 'method': 'read_id', - 'alias': 'thermostat' + 'alias': 'thermostat', + 'arguments': { + 'attributes': { + 'inactive': 0 + } + } }, { 'resource': 'sensor', 'method': 'read_id', - 'alias': 'sensor' + 'alias': 'sensor', + 'arguments': { + 'attributes': { + 'inactive': 0 + } + } }, { 'resource': 'ecobee_thermostat', 'method': 'read_id', - 'alias': 'ecobee_thermostat' + 'alias': 'ecobee_thermostat', + 'arguments': { + 'attributes': { + 'inactive': 0 + } + } }, { 'resource': 'ecobee_sensor', 'method': 'read_id', - 'alias': 'ecobee_sensor' + 'alias': 'ecobee_sensor', + 'arguments': { + 'attributes': { + 'inactive': 0 + } + } } ], function(response) {