Add icon translations to Zeversolar (#112367)

This commit is contained in:
Joost Lekkerkerker 2024-03-06 06:27:15 +01:00 committed by GitHub
parent 8fe80a4766
commit 48f1b08e4b
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 13 additions and 2 deletions

View File

@ -0,0 +1,12 @@
{
"entity": {
"sensor": {
"pac": {
"default": "mdi:solar-power-variant"
},
"energy_today": {
"default": "mdi:home-battery"
}
}
}
}

View File

@ -39,7 +39,7 @@ class ZeversolarEntityDescription(
SENSOR_TYPES = (
ZeversolarEntityDescription(
key="pac",
icon="mdi:solar-power-variant",
translation_key="pac",
native_unit_of_measurement=UnitOfPower.WATT,
state_class=SensorStateClass.MEASUREMENT,
entity_category=EntityCategory.DIAGNOSTIC,
@ -49,7 +49,6 @@ SENSOR_TYPES = (
ZeversolarEntityDescription(
key="energy_today",
translation_key="energy_today",
icon="mdi:home-battery",
native_unit_of_measurement=UnitOfEnergy.KILO_WATT_HOUR,
state_class=SensorStateClass.TOTAL_INCREASING,
device_class=SensorDeviceClass.ENERGY,