forked from home-assistant/core
Add fan preset translations and icons to BAF (#109944)
This commit is contained in:
@@ -9,7 +9,7 @@ QUERY_INTERVAL = 300
|
||||
|
||||
RUN_TIMEOUT = 20
|
||||
|
||||
PRESET_MODE_AUTO = "Auto"
|
||||
PRESET_MODE_AUTO = "auto"
|
||||
|
||||
SPEED_COUNT = 7
|
||||
SPEED_RANGE = (1, SPEED_COUNT)
|
||||
|
@@ -48,6 +48,7 @@ class BAFFan(BAFEntity, FanEntity):
|
||||
_attr_preset_modes = [PRESET_MODE_AUTO]
|
||||
_attr_speed_count = SPEED_COUNT
|
||||
_attr_name = None
|
||||
_attr_translation_key = "baf"
|
||||
|
||||
@callback
|
||||
def _async_update_attrs(self) -> None:
|
||||
|
15
homeassistant/components/baf/icons.json
Normal file
15
homeassistant/components/baf/icons.json
Normal file
@@ -0,0 +1,15 @@
|
||||
{
|
||||
"entity": {
|
||||
"fan": {
|
||||
"baf": {
|
||||
"state_attributes": {
|
||||
"preset_mode": {
|
||||
"state": {
|
||||
"auto": "mdi:fan-auto"
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
@@ -26,6 +26,17 @@
|
||||
"name": "Auto comfort"
|
||||
}
|
||||
},
|
||||
"fan": {
|
||||
"baf": {
|
||||
"state_attributes": {
|
||||
"preset_mode": {
|
||||
"state": {
|
||||
"auto": "[%key:component::climate::entity_component::_::state_attributes::fan_mode::state::auto%]"
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"number": {
|
||||
"comfort_min_speed": {
|
||||
"name": "Auto Comfort Minimum Speed"
|
||||
|
Reference in New Issue
Block a user