mirror of https://github.com/home-assistant/core
Add icon translations to Zeversolar (#112367)
This commit is contained in:
parent
8fe80a4766
commit
48f1b08e4b
|
@ -0,0 +1,12 @@
|
|||
{
|
||||
"entity": {
|
||||
"sensor": {
|
||||
"pac": {
|
||||
"default": "mdi:solar-power-variant"
|
||||
},
|
||||
"energy_today": {
|
||||
"default": "mdi:home-battery"
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
|
@ -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,
|
||||
|
|
Loading…
Reference in New Issue