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:
parent
66c31118ad
commit
7f772bad73
60 changed files with 1547 additions and 363 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue