Add icon translations to Renson (#112207)
This commit is contained in:
parent
926159ab9a
commit
85aedbc200
4 changed files with 25 additions and 3 deletions
|
@ -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:
|
||||
|
|
24
homeassistant/components/renson/icons.json
Normal file
24
homeassistant/components/renson/icons.json
Normal 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"
|
||||
}
|
||||
}
|
|
@ -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,
|
||||
|
|
|
@ -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"
|
||||
|
|
Loading…
Add table
Reference in a new issue