Config UI: fix icon in customer chargers (#22947)

This commit is contained in:
Michael Geers 2025-08-13 07:36:01 +02:00 • committed by GitHub
parent f1b479cb82
commit de41326369
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
5 changed files with 10 additions and 0 deletions

View file

@ -304,6 +304,10 @@ export default defineComponent({
if (this.values.type === ConfigType.Template) {
data["template"] = this.templateName;
}
if (this.showYamlInput) {
// Icon is extracted from yaml on GET for UI purpose only. Don't write it back.
delete data["icon"];
}
return data;
},
isNew() {

View file

@ -15,6 +15,7 @@ maxcurrent: # set maximum charge current in A
## optional attributes (read-only)
#icon: generic # icon for UI purpose only
#power: # charge power in W
# source: const
# value: 11000

View file

@ -17,6 +17,8 @@ features:
- heating # treat as a heating device
- integrateddevice # no charging sessions, no connected vehicles
icon: heater # icon for UI purpose only
## optional attributes (read-only)
#power: # heating power in W

View file

@ -16,6 +16,7 @@ features:
## optional attributes (read-only)
#icon: generic # icon for UI purpose only
#energy: # meter reading in kWh
# source: const
# value: 42.5

View file

@ -15,6 +15,8 @@ features:
- heating # treat as a heating device
- integrateddevice # no charging sessions, no connected vehicles
icon: heater # icon for UI purpose only
## optional attributes (read-only)
#energy: # meter reading in kWh