diff --git a/homeassistant/components/rabbitair/fan.py b/homeassistant/components/rabbitair/fan.py index a0a97ddb2c1b..99aa80dae007 100644 --- a/homeassistant/components/rabbitair/fan.py +++ b/homeassistant/components/rabbitair/fan.py @@ -23,9 +23,9 @@ SPEED_LIST = [ Speed.Turbo, ] -PRESET_MODE_AUTO = "Auto" -PRESET_MODE_MANUAL = "Manual" -PRESET_MODE_POLLEN = "Pollen" +PRESET_MODE_AUTO = "auto" +PRESET_MODE_MANUAL = "manual" +PRESET_MODE_POLLEN = "pollen" PRESET_MODES = { PRESET_MODE_AUTO: Mode.Auto, @@ -46,6 +46,7 @@ async def async_setup_entry( class RabbitAirFanEntity(RabbitAirBaseEntity, FanEntity): """Fan control functions of the Rabbit Air air purifier.""" + _attr_translation_key = "rabbitair" _attr_supported_features = ( FanEntityFeature.PRESET_MODE | FanEntityFeature.SET_SPEED diff --git a/homeassistant/components/rabbitair/icons.json b/homeassistant/components/rabbitair/icons.json new file mode 100644 index 000000000000..5ee0b6eccf13 --- /dev/null +++ b/homeassistant/components/rabbitair/icons.json @@ -0,0 +1,17 @@ +{ + "entity": { + "fan": { + "rabbitair": { + "state_attributes": { + "preset_mode": { + "state": { + "auto": "mdi:fan-auto", + "manual": "mdi:fan", + "pollen": "mdi:flower-pollen" + } + } + } + } + } + } +} diff --git a/homeassistant/components/rabbitair/strings.json b/homeassistant/components/rabbitair/strings.json index 070ba3be3c54..d24af81560b5 100644 --- a/homeassistant/components/rabbitair/strings.json +++ b/homeassistant/components/rabbitair/strings.json @@ -18,5 +18,20 @@ } } } + }, + "entity": { + "fan": { + "rabbitair": { + "state_attributes": { + "preset_mode": { + "state": { + "auto": "[%key:common::state::auto%]", + "manual": "[%key:common::state::manual%]", + "pollen": "Pollen" + } + } + } + } + } } }