Add icons for fan preset modes (#109334)

Co-authored-by: Franck Nijhof <frenck@frenck.nl>
pull/109628/head^2
Tucker Kern 2024-02-04 15:58:44 -07:00 committed by GitHub
parent 02fb60b33e
commit 3abc48b7c1
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
4 changed files with 34 additions and 0 deletions

View File

@ -90,6 +90,7 @@ class BaseDemoFan(FanEntity):
"""A demonstration fan component that uses legacy fan speeds."""
_attr_should_poll = False
_attr_translation_key = "demo"
def __init__(
self,

View File

@ -23,6 +23,21 @@
}
}
},
"fan": {
"demo": {
"state_attributes": {
"preset_mode": {
"default": "mdi:circle-medium",
"state": {
"auto": "mdi:fan-auto",
"sleep": "mdi:bed",
"smart": "mdi:brain",
"on": "mdi:power"
}
}
}
}
},
"number": {
"volume": {
"default": "mdi:volume-high"

View File

@ -46,6 +46,20 @@
}
}
},
"fan": {
"demo": {
"state_attributes": {
"preset_mode": {
"state": {
"auto": "[%key:component::climate::entity_component::_::state_attributes::fan_mode::state::auto%]",
"sleep": "[%key:component::climate::entity_component::_::state_attributes::preset_mode::state::sleep%]",
"smart": "Smart",
"on": "[%key:common::state::on%]"
}
}
}
}
},
"event": {
"push": {
"state_attributes": {

View File

@ -11,6 +11,10 @@
"state": {
"reverse": "mdi:rotate-left"
}
},
"preset_mode": {
"default": "mdi:circle-medium",
"state": {}
}
}
}