evcc-io/tariff/proxy_error.go
andig 75dad99895
Tariffs: add caching (#22446)
Inspired by @terrorobe
2025-07-19 23:09:05 +02:00

17 lines
278 B
Go

package tariff
import "github.com/evcc-io/evcc/api"
type proxyError struct {
error
}
var _ api.Tariff = (*proxyError)(nil)
func (t *proxyError) Rates() (api.Rates, error) {
return api.Rates{}, t.error
}
func (t *proxyError) Type() api.TariffType {
return 0 // unknown
}