Config UI: add loadpoints (BC) (#18137)
This commit is contained in:
parent
d7fcdf663f
commit
864c2cf599
92 changed files with 4643 additions and 1116 deletions
|
|
@ -24,11 +24,11 @@ func TestYamlOff(t *testing.T) {
|
|||
}
|
||||
|
||||
var lp core.Loadpoint
|
||||
if err := util.DecodeOther(conf.Loadpoints[0], &lp); err != nil {
|
||||
if err := util.DecodeOther(conf.Loadpoints[0].Other, &lp); err != nil {
|
||||
t.Error(err)
|
||||
}
|
||||
|
||||
if lp.Mode_ != api.ModeOff {
|
||||
t.Errorf("expected `off`, got %s", lp.Mode_)
|
||||
if lp.DefaultMode != api.ModeOff {
|
||||
t.Errorf("expected `off`, got %s", lp.DefaultMode)
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue