fix regulator state display
All checks were successful
Build .deb on release / Build-Deb (push) Successful in 1m51s
All checks were successful
Build .deb on release / Build-Deb (push) Successful in 1m51s
This commit is contained in:
parent
ccd46b657c
commit
ef8d272eee
2
Cargo.lock
generated
2
Cargo.lock
generated
|
@ -2538,7 +2538,7 @@ dependencies = [
|
||||||
|
|
||||||
[[package]]
|
[[package]]
|
||||||
name = "tesla-charge-controller"
|
name = "tesla-charge-controller"
|
||||||
version = "1.2.0"
|
version = "1.2.1"
|
||||||
dependencies = [
|
dependencies = [
|
||||||
"chrono",
|
"chrono",
|
||||||
"clap 4.4.11",
|
"clap 4.4.11",
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
[package]
|
[package]
|
||||||
name = "tesla-charge-controller"
|
name = "tesla-charge-controller"
|
||||||
version = "1.2.0"
|
version = "1.2.1"
|
||||||
edition = "2021"
|
edition = "2021"
|
||||||
license = "MITNFA"
|
license = "MITNFA"
|
||||||
description = "Controls Tesla charge rate based on solar charge data"
|
description = "Controls Tesla charge rate based on solar charge data"
|
||||||
|
|
|
@ -323,7 +323,8 @@ function refresh_regulator_state() {
|
||||||
state_input.disabled = false;
|
state_input.disabled = false;
|
||||||
|
|
||||||
fetch(api_url + "/regulator-state")
|
fetch(api_url + "/regulator-state")
|
||||||
.then((response) => { response.json() })
|
.then((response) => response.json())
|
||||||
|
.catch(() => null)
|
||||||
.then((json) => update_regulator_state(json));
|
.then((json) => update_regulator_state(json));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue