Stekker: fix formula init (#23646)

This commit is contained in:
RenatusRo 2025-09-18 08:24:42 +02:00 • committed by GitHub
parent ebda12de14
commit 631b57d774
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -55,6 +55,10 @@ func NewStekkerFromConfig(other map[string]interface{}) (api.Tariff, error) {
return nil, fmt.Errorf("unsupported region: %s", cc.Region)
}
if err := cc.init(); err != nil {
return nil, err
}
t := &Stekker{
embed: &cc.embed,
region: cc.Region,