mirror of
https://github.com/home-assistant/core.git
synced 2025-07-23 21:27:38 +00:00
Add entity translations to zeversolar (#96838)
* Add entity translations to zeversolar * Remove current power
This commit is contained in:
parent
d46a72e5ab
commit
8a9f117bdc
@ -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…
x
Reference in New Issue
Block a user