Add fan preset translations and icons to BAF (#109944)

pull/110051/head^2
Tucker Kern 2024-04-23 11:11:40 -06:00 committed by GitHub
parent d4ecf30b6a
commit d8aa1cd8b5
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
4 changed files with 28 additions and 1 deletions

View File

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

View File

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

View File

@ -0,0 +1,15 @@
{
"entity": {
"fan": {
"baf": {
"state_attributes": {
"preset_mode": {
"state": {
"auto": "mdi:fan-auto"
}
}
}
}
}
}
}

View File

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