chore: simplify (#16257)

This commit is contained in:
andig 2024-09-21 11:24:58 +02:00 • committed by GitHub
parent 4f51534bd5
commit f43cee168e
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 2 additions and 6 deletions

View file

@ -14,9 +14,9 @@ params:
- name: capacity
advanced: true
render: |
{{- if eq .usage "grid" }}
type: custom
# sunspec model 203 (int+sf)/ 213 (float) meter
{{- if eq .usage "grid" }}
power:
source: sunspec
{{- include "modbus" . | indent 2 }}
@ -80,7 +80,6 @@ render: |
- 213:WphC
{{- end }}
{{- if eq .usage "pv" }}
type: custom
power:
source: calc
add:
@ -103,7 +102,6 @@ render: |
scale: 0.001
{{- end }}
{{- if eq .usage "battery" }}
type: custom
power:
source: calc
add:

View file

@ -12,8 +12,8 @@ params:
- name: capacity
advanced: true
render: |
{{- if eq .usage "grid" }}
type: custom
{{- if eq .usage "grid" }}
# sunspec model 203 (int+sf)/ 213 (float) meter
power:
source: sunspec
@ -78,7 +78,6 @@ render: |
- 213:WphC
{{- end }}
{{- if eq .usage "pv" }}
type: custom
power:
source: sunspec
{{- include "modbus" . | indent 2 }}
@ -102,7 +101,6 @@ render: |
scale: 0.001
{{- end }}
{{- if eq .usage "battery" }}
type: custom
power:
source: sunspec
{{- include "modbus" . | indent 2 }}