Skip to content

Commit

Permalink
SmartCost: disable on static tariffs (evcc-io#11808)
Browse files Browse the repository at this point in the history
  • Loading branch information
andig authored Jan 22, 2024
1 parent bc0343a commit 3e23dd1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion core/site.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 3e23dd1

Please sign in to comment.