From 3e23dd12e908ee14faf814e3e66c513f247695fd Mon Sep 17 00:00:00 2001 From: andig Date: Mon, 22 Jan 2024 11:03:09 +0100 Subject: [PATCH] SmartCost: disable on static tariffs (#11808) --- core/site.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/site.go b/core/site.go index 46d219de2..70b221713 100644 --- a/core/site.go +++ b/core/site.go @@ -760,7 +760,7 @@ func (site *Site) update(lp Updater) { } var smartCostActive bool - if tariff := site.GetTariff(PlannerTariff); tariff != nil { + if tariff := site.GetTariff(PlannerTariff); tariff != nil && tariff.Type() != api.TariffTypePriceStatic { rates, err := tariff.Rates() var rate api.Rate