Always poll soc for integrated devices (#10284)

This commit is contained in:
andig 2023-10-12 22:43:57 +02:00 • committed by GitHub
parent e3583399fd
commit c1acd274d0
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -1377,7 +1377,7 @@ func (lp *Loadpoint) publishSocAndRange() {
return
}
if err == nil || lp.vehicleSocPollAllowed() {
if err == nil || lp.chargerHasFeature(api.IntegratedDevice) || lp.vehicleSocPollAllowed() {
lp.socUpdated = lp.clock.Now()
f, err := lp.socEstimator.Soc(lp.getChargedEnergy())