mirror of
https://github.com/home-assistant/core.git
synced 2025-07-14 08:47:10 +00:00
Add icon translations to Coolmaster (#111359)
This commit is contained in:
parent
33bf5d7b8b
commit
40a38d23eb
@ -37,7 +37,6 @@ class CoolmasterCleanFilter(CoolmasterEntity, BinarySensorEntity):
|
||||
translation_key="clean_filter",
|
||||
device_class=BinarySensorDeviceClass.PROBLEM,
|
||||
entity_category=EntityCategory.DIAGNOSTIC,
|
||||
icon="mdi:air-filter",
|
||||
)
|
||||
|
||||
@property
|
||||
|
@ -32,7 +32,6 @@ class CoolmasterResetFilter(CoolmasterEntity, ButtonEntity):
|
||||
key="reset_filter",
|
||||
translation_key="reset_filter",
|
||||
entity_category=EntityCategory.CONFIG,
|
||||
icon="mdi:air-filter",
|
||||
)
|
||||
|
||||
async def async_press(self) -> None:
|
||||
|
19
homeassistant/components/coolmaster/icons.json
Normal file
19
homeassistant/components/coolmaster/icons.json
Normal file
@ -0,0 +1,19 @@
|
||||
{
|
||||
"entity": {
|
||||
"binary_sensor": {
|
||||
"clean_filter": {
|
||||
"default": "mdi:air-filter"
|
||||
}
|
||||
},
|
||||
"button": {
|
||||
"reset_filter": {
|
||||
"default": "mdi:air-filter"
|
||||
}
|
||||
},
|
||||
"sensor": {
|
||||
"error_code": {
|
||||
"default": "mdi:alert"
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
@ -32,7 +32,6 @@ class CoolmasterCleanFilter(CoolmasterEntity, SensorEntity):
|
||||
key="error_code",
|
||||
translation_key="error_code",
|
||||
entity_category=EntityCategory.DIAGNOSTIC,
|
||||
icon="mdi:alert",
|
||||
)
|
||||
|
||||
@property
|
||||
|
Loading…
x
Reference in New Issue
Block a user