evcc-io/util/templates/includes/switchsocket.tpl

4 lines
157 B
Smarty

{{define "switchsocket"}}
{{ if eq .integrateddevice "true" }}features: ["integrateddevice"]{{ end }}
{{ if ne .icon "" }}icon: {{ .icon }}{{ end }}
{{end}}