Add icon translations to Renson (#112207)

This commit is contained in:
Joost Lekkerkerker 2024-03-05 08:45:22 +01:00 committed by GitHub
parent 926159ab9a
commit 85aedbc200
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
4 changed files with 25 additions and 3 deletions

View file

@ -117,9 +117,9 @@ async def async_setup_entry(
class RensonFan(RensonEntity, FanEntity):
"""Representation of the Renson fan platform."""
_attr_icon = "mdi:air-conditioner"
_attr_has_entity_name = True
_attr_name = None
_attr_translation_key = "fan"
_attr_supported_features = FanEntityFeature.SET_SPEED
def __init__(self, api: RensonVentilation, coordinator: RensonCoordinator) -> None:

View file

@ -0,0 +1,24 @@
{
"entity": {
"fan": {
"fan": {
"default": "mdi:air-conditioner"
}
},
"number": {
"filter_change": {
"default": "mdi:filter"
}
},
"switch": {
"breeze": {
"default": "mdi:weather-dust"
}
}
},
"services": {
"set_timer_level": "mdi:timer",
"set_breeze": "mdi:weather-windy",
"set_pollution_settings": "mdi:air-filter"
}
}

View file

@ -26,7 +26,6 @@ _LOGGER = logging.getLogger(__name__)
RENSON_NUMBER_DESCRIPTION = NumberEntityDescription(
key="filter_change",
translation_key="filter_change",
icon="mdi:filter",
native_step=1,
native_min_value=0,
native_max_value=360,

View file

@ -22,7 +22,6 @@ _LOGGER = logging.getLogger(__name__)
class RensonBreezeSwitch(RensonEntity, SwitchEntity):
"""Provide the breeze switch."""
_attr_icon = "mdi:weather-dust"
_attr_device_class = SwitchDeviceClass.SWITCH
_attr_has_entity_name = True
_attr_translation_key = "breeze"