Config UI: make messengers configurable (#26946)

Co-authored-by: andig <cpuidle@gmail.com>
Co-authored-by: andig <andi@evcc.io>
Co-authored-by: sourcery-ai[bot] <58596630+sourcery-ai[bot]@users.noreply.github.com>
Co-authored-by: Michael Geers <michael@geers.tv>
This commit is contained in:
Maschga 2026-02-17 12:26:03 +01:00 • committed by GitHub
parent 66c31118ad
commit 7f772bad73
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
60 changed files with 1547 additions and 363 deletions

View file

@ -8,10 +8,10 @@ import (
)
func init() {
registry.AddCtx("template", NewTariffFromTemplateConfig)
registry.AddCtx("template", NewFromTemplateConfig)
}
func NewTariffFromTemplateConfig(ctx context.Context, other map[string]any) (api.Tariff, error) {
func NewFromTemplateConfig(ctx context.Context, other map[string]any) (api.Tariff, error) {
instance, err := templates.RenderInstance(templates.Tariff, other)
if err != nil {
return nil, err