diff --git a/templates/definition/tariff/forecast-solar.yaml b/templates/definition/tariff/forecast-solar.yaml index 778e48f12..3c9c2aabc 100644 --- a/templates/definition/tariff/forecast-solar.yaml +++ b/templates/definition/tariff/forecast-solar.yaml @@ -16,7 +16,8 @@ params: help: en: -180 = north, -90 = east, 0 = south, 90 = west, 180 = north de: -180 = Norden, -90 = Osten, 0 = Süden, 90 = Westen, 180 = Norden - example: 180 + type: int + example: 0 required: true - name: horizon description: diff --git a/util/templates/types.go b/util/templates/types.go index eff41e91e..3523d4156 100644 --- a/util/templates/types.go +++ b/util/templates/types.go @@ -273,9 +273,9 @@ func (p *Param) IsDeprecated() bool { func (p *Param) IsZero(s string) bool { switch p.Type { case TypeInt: - return cast.ToInt64(s) == 0 + return cast.ToInt64(s) == 0 && p.Name != "az" case TypeFloat: - return cast.ToFloat64(s) == 0 + return cast.ToFloat64(s) == 0 && p.Name != "az" case TypeDuration: return cast.ToDuration(s) == 0 default: