Config UI: add loadpoints (BC) (#18137)

This commit is contained in:
Michael Geers 2025-01-31 12:26:23 +01:00 • committed by GitHub
parent d7fcdf663f
commit 864c2cf599
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
92 changed files with 4643 additions and 1116 deletions

View file

@ -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)
}
}