1
0
mirror of https://github.com/beestat/app.git synced 2025-05-24 02:14:03 -04:00

Fixed #125 - Removed sensors are not being properly removed

Forgot to remove the inactive sensors from the polling.
This commit is contained in:
Jon Ziebell 2019-06-19 21:06:50 -04:00
parent ca340b4326
commit b02374a71b

View File

@ -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) {