Add icon translations to Coolmaster (#111359)

This commit is contained in:
Joost Lekkerkerker 2024-02-25 14:03:07 +01:00 committed by GitHub
parent 33bf5d7b8b
commit 40a38d23eb
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
4 changed files with 19 additions and 3 deletions

View File

@ -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

View File

@ -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:

View 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"
}
}
}
}

View File

@ -32,7 +32,6 @@ class CoolmasterCleanFilter(CoolmasterEntity, SensorEntity):
key="error_code",
translation_key="error_code",
entity_category=EntityCategory.DIAGNOSTIC,
icon="mdi:alert",
)
@property