Add icon translations to Goodwe (#111655)

This commit is contained in:
Joost Lekkerkerker 2024-02-27 22:22:56 +01:00 committed by GitHub
parent d4a7e4a6ac
commit 81590ac887
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
4 changed files with 22 additions and 4 deletions

View file

@ -35,7 +35,6 @@ class GoodweButtonEntityDescription(
SYNCHRONIZE_CLOCK = GoodweButtonEntityDescription(
key="synchronize_clock",
translation_key="synchronize_clock",
icon="mdi:clock-check-outline",
entity_category=EntityCategory.CONFIG,
action=lambda inv: inv.write_setting("time", datetime.now()),
)

View file

@ -0,0 +1,22 @@
{
"entity": {
"button": {
"synchronize_clock": {
"default": "mdi:clock-check-outline"
}
},
"number": {
"grid_export_limit": {
"default": "mdi:transmission-tower"
},
"battery_discharge_depth": {
"default": "mdi:battery-arrow-down"
}
},
"select": {
"operation_mode": {
"default": "mdi:solar-power"
}
}
}
}

View file

@ -51,7 +51,6 @@ NUMBERS = (
GoodweNumberEntityDescription(
key="grid_export_limit",
translation_key="grid_export_limit",
icon="mdi:transmission-tower",
entity_category=EntityCategory.CONFIG,
device_class=NumberDeviceClass.POWER,
native_unit_of_measurement=UnitOfPower.WATT,
@ -66,7 +65,6 @@ NUMBERS = (
GoodweNumberEntityDescription(
key="grid_export_limit",
translation_key="grid_export_limit",
icon="mdi:transmission-tower",
entity_category=EntityCategory.CONFIG,
native_unit_of_measurement=PERCENTAGE,
native_step=1,

View file

@ -31,7 +31,6 @@ _OPTION_TO_MODE: dict[str, OperationMode] = {
OPERATION_MODE = SelectEntityDescription(
key="operation_mode",
icon="mdi:solar-power",
entity_category=EntityCategory.CONFIG,
translation_key="operation_mode",
)