From bbc79cb992e7c1d1ebd61bfd98748435fb39dc93 Mon Sep 17 00:00:00 2001 From: andig Date: Sat, 12 Jun 2021 13:43:08 +0200 Subject: [PATCH] Handle yaml treating off as zero --- api/impl.go | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/api/impl.go b/api/impl.go index e2157fcf8..0d14f05f0 100644 --- a/api/impl.go +++ b/api/impl.go @@ -11,9 +11,7 @@ func ChargeModeString(mode string) ChargeMode { return ModeMinPV case string(ModePV): return ModePV - case string(ModeOff): - return ModeOff default: - return "" + return ModeOff } }