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:
parent
c6bc75d0ac
commit
8d6ed9dba5
@ -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) {
|
||||
|
@ -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) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user