mirror of
https://github.com/home-assistant/core.git
synced 2025-07-27 15:17:35 +00:00
Add icon translations to Goodwe (#111655)
This commit is contained in:
parent
d4a7e4a6ac
commit
81590ac887
@ -35,7 +35,6 @@ class GoodweButtonEntityDescription(
|
|||||||
SYNCHRONIZE_CLOCK = GoodweButtonEntityDescription(
|
SYNCHRONIZE_CLOCK = GoodweButtonEntityDescription(
|
||||||
key="synchronize_clock",
|
key="synchronize_clock",
|
||||||
translation_key="synchronize_clock",
|
translation_key="synchronize_clock",
|
||||||
icon="mdi:clock-check-outline",
|
|
||||||
entity_category=EntityCategory.CONFIG,
|
entity_category=EntityCategory.CONFIG,
|
||||||
action=lambda inv: inv.write_setting("time", datetime.now()),
|
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(
|
GoodweNumberEntityDescription(
|
||||||
key="grid_export_limit",
|
key="grid_export_limit",
|
||||||
translation_key="grid_export_limit",
|
translation_key="grid_export_limit",
|
||||||
icon="mdi:transmission-tower",
|
|
||||||
entity_category=EntityCategory.CONFIG,
|
entity_category=EntityCategory.CONFIG,
|
||||||
device_class=NumberDeviceClass.POWER,
|
device_class=NumberDeviceClass.POWER,
|
||||||
native_unit_of_measurement=UnitOfPower.WATT,
|
native_unit_of_measurement=UnitOfPower.WATT,
|
||||||
@ -66,7 +65,6 @@ NUMBERS = (
|
|||||||
GoodweNumberEntityDescription(
|
GoodweNumberEntityDescription(
|
||||||
key="grid_export_limit",
|
key="grid_export_limit",
|
||||||
translation_key="grid_export_limit",
|
translation_key="grid_export_limit",
|
||||||
icon="mdi:transmission-tower",
|
|
||||||
entity_category=EntityCategory.CONFIG,
|
entity_category=EntityCategory.CONFIG,
|
||||||
native_unit_of_measurement=PERCENTAGE,
|
native_unit_of_measurement=PERCENTAGE,
|
||||||
native_step=1,
|
native_step=1,
|
||||||
|
@ -31,7 +31,6 @@ _OPTION_TO_MODE: dict[str, OperationMode] = {
|
|||||||
|
|
||||||
OPERATION_MODE = SelectEntityDescription(
|
OPERATION_MODE = SelectEntityDescription(
|
||||||
key="operation_mode",
|
key="operation_mode",
|
||||||
icon="mdi:solar-power",
|
|
||||||
entity_category=EntityCategory.CONFIG,
|
entity_category=EntityCategory.CONFIG,
|
||||||
translation_key="operation_mode",
|
translation_key="operation_mode",
|
||||||
)
|
)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user