Sessions: fix missing loadpoint names (#18868)
Some checks failed
Some checks failed
This commit is contained in:
parent
c2fc6ff297
commit
d3814b1437
1 changed files with 8 additions and 8 deletions
|
|
@ -241,6 +241,14 @@ func NewLoadpointFromConfig(log *util.Logger, settings settings.Settings, other
|
|||
lp.mode = api.ModeOff
|
||||
}
|
||||
|
||||
if lp.Title != "" {
|
||||
lp.setTitle(lp.Title)
|
||||
}
|
||||
|
||||
if lp.Priority > 0 {
|
||||
lp.setPriority(lp.Priority)
|
||||
}
|
||||
|
||||
return lp, nil
|
||||
}
|
||||
|
||||
|
|
@ -280,14 +288,6 @@ func (lp *Loadpoint) restoreSettings() {
|
|||
return
|
||||
}
|
||||
|
||||
// from yaml
|
||||
if lp.Title != "" {
|
||||
lp.setTitle(lp.Title)
|
||||
}
|
||||
if lp.Priority > 0 {
|
||||
lp.setPriority(lp.Priority)
|
||||
}
|
||||
|
||||
// deprecated yaml properties
|
||||
if lp.Phases_ > 0 {
|
||||
lp.log.WARN.Printf("ignoring deprecated phases: %d. please configure via UI", lp.Phases_)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue