Add icon translations to Goodwe (#111655)
This commit is contained in:
parent
d4a7e4a6ac
commit
81590ac887
4 changed files with 22 additions and 4 deletions
|
@ -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()),
|
||||
)
|
||||
|
|
22
homeassistant/components/goodwe/icons.json
Normal file
22
homeassistant/components/goodwe/icons.json
Normal 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"
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
|
@ -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,
|
||||
|
|
|
@ -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",
|
||||
)
|
||||
|
|
Loading…
Add table
Reference in a new issue