mirror of
https://github.com/home-assistant/core.git
synced 2026-12-02 19:57:03 -04:00
Remove redundant battery power translation key from SolarEdge (#185336)
This commit is contained in:
@@ -275,8 +275,6 @@ BATTERY_SENSOR_TYPES = [
|
||||
SolarEdgeSensorEntityDescription(
|
||||
key="battery_power",
|
||||
json_key="power",
|
||||
# pylint: disable-next=home-assistant-redundant-translation-key
|
||||
translation_key="battery_power",
|
||||
entity_registry_enabled_default=False,
|
||||
state_class=SensorStateClass.MEASUREMENT,
|
||||
native_unit_of_measurement=UnitOfPower.WATT,
|
||||
|
||||
@@ -90,9 +90,6 @@
|
||||
"battery_discharge_energy": {
|
||||
"name": "Discharge energy today"
|
||||
},
|
||||
"battery_power": {
|
||||
"name": "Power"
|
||||
},
|
||||
"battery_state_of_charge": {
|
||||
"name": "State of charge"
|
||||
},
|
||||
|
||||
@@ -152,7 +152,7 @@
|
||||
'previous_unique_id': None,
|
||||
'suggested_object_id': None,
|
||||
'supported_features': 0,
|
||||
'translation_key': 'battery_power',
|
||||
'translation_key': None,
|
||||
'unique_id': '1a2b3c4d5e6f7g8h_BAT001_battery_power',
|
||||
'unit_of_measurement': <UnitOfPower.WATT: 'W'>,
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user