update_temp at startup from restored temp_today
This commit is contained in:
parent
3096846e0d
commit
13e59a2615
2
pool.js
2
pool.js
@ -297,6 +297,8 @@ Shelly.call (
|
|||||||
if (result) {
|
if (result) {
|
||||||
status.temp_today = result.value;
|
status.temp_today = result.value;
|
||||||
print("[POOL] Restore from KVS: temp_today:", status.temp_today);
|
print("[POOL] Restore from KVS: temp_today:", status.temp_today);
|
||||||
|
if (status.temp_today !== null)
|
||||||
|
update_temp(status.temp_today);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
)
|
)
|
||||||
|
Loading…
Reference in New Issue
Block a user