Loadpoint: fix 1p3p charger not updating physical state if phase config not set to auto (#18637)
This commit is contained in:
parent
09e47b07c2
commit
dd2af01e53
1 changed files with 4 additions and 1 deletions
|
|
@ -338,7 +338,10 @@ func (lp *Loadpoint) restoreSettings() {
|
|||
}
|
||||
if v, err := lp.settings.Int(keys.Phases); err == nil && (v > 0 || lp.hasPhaseSwitching()) {
|
||||
lp.setConfiguredPhases(int(v))
|
||||
lp.phases = lp.configuredPhases
|
||||
// for 1p3p charger, we don't know the physical state yet (phases == 0), so don't touch it
|
||||
if !lp.hasPhaseSwitching() {
|
||||
lp.phases = lp.configuredPhases
|
||||
}
|
||||
}
|
||||
if v, err := lp.settings.Float(keys.MinCurrent); err == nil && v > 0 {
|
||||
lp.setMinCurrent(v)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue