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

Fixed #226 - Sometimes switching thermostats errors

The API call to thermostat.read_id in runtime detail was not excluding inactive thermostats. That messed up the cache, which caused an inactive thermostat to try and display in the thermostat switcher.
This commit is contained in:
Jon Ziebell 2020-01-22 08:19:24 -05:00
parent c6bc75d0ac
commit 8d6ed9dba5
2 changed files with 10 additions and 2 deletions

View File

@ -144,7 +144,11 @@ beestat.component.card.runtime_sensor_detail.prototype.decorate_contents_ = func
.add_call(
'thermostat',
'read_id',
{},
{
'attributes': {
'inactive': 0
}
},
'thermostat'
)
.set_callback(function(response) {

View File

@ -133,7 +133,11 @@ beestat.component.card.runtime_thermostat_detail.prototype.decorate_contents_ =
.add_call(
'thermostat',
'read_id',
{},
{
'attributes': {
'inactive': 0
}
},
'thermostat'
)
.set_callback(function(response) {