Add entity translations to zeversolar (#96838)
* Add entity translations to zeversolar * Remove current power
This commit is contained in:
parent
d46a72e5ab
commit
8a9f117bdc
2 changed files with 8 additions and 2 deletions
|
@ -39,7 +39,6 @@ class ZeversolarEntityDescription(
|
|||
SENSOR_TYPES = (
|
||||
ZeversolarEntityDescription(
|
||||
key="pac",
|
||||
name="Current power",
|
||||
icon="mdi:solar-power-variant",
|
||||
native_unit_of_measurement=UnitOfPower.WATT,
|
||||
state_class=SensorStateClass.MEASUREMENT,
|
||||
|
@ -49,7 +48,7 @@ SENSOR_TYPES = (
|
|||
),
|
||||
ZeversolarEntityDescription(
|
||||
key="energy_today",
|
||||
name="Energy today",
|
||||
translation_key="energy_today",
|
||||
icon="mdi:home-battery",
|
||||
native_unit_of_measurement=UnitOfEnergy.KILO_WATT_HOUR,
|
||||
state_class=SensorStateClass.TOTAL_INCREASING,
|
||||
|
|
|
@ -16,5 +16,12 @@
|
|||
"abort": {
|
||||
"already_configured": "[%key:common::config_flow::abort::already_configured_device%]"
|
||||
}
|
||||
},
|
||||
"entity": {
|
||||
"sensor": {
|
||||
"energy_today": {
|
||||
"name": "Energy today"
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue