Add entity translations to zeversolar (#96838)

* Add entity translations to zeversolar

* Remove current power
This commit is contained in:
Joost Lekkerkerker 2023-07-18 13:40:06 +02:00 committed by GitHub
parent d46a72e5ab
commit 8a9f117bdc
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 8 additions and 2 deletions

View file

@ -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,

View file

@ -16,5 +16,12 @@
"abort": {
"already_configured": "[%key:common::config_flow::abort::already_configured_device%]"
}
},
"entity": {
"sensor": {
"energy_today": {
"name": "Energy today"
}
}
}
}