mirror of
https://github.com/home-assistant/core.git
synced 2025-07-18 02:37:08 +00:00
Add icons for fan preset modes (#109334)
Co-authored-by: Franck Nijhof <frenck@frenck.nl>
This commit is contained in:
parent
02fb60b33e
commit
3abc48b7c1
@ -90,6 +90,7 @@ class BaseDemoFan(FanEntity):
|
|||||||
"""A demonstration fan component that uses legacy fan speeds."""
|
"""A demonstration fan component that uses legacy fan speeds."""
|
||||||
|
|
||||||
_attr_should_poll = False
|
_attr_should_poll = False
|
||||||
|
_attr_translation_key = "demo"
|
||||||
|
|
||||||
def __init__(
|
def __init__(
|
||||||
self,
|
self,
|
||||||
|
@ -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": {
|
"number": {
|
||||||
"volume": {
|
"volume": {
|
||||||
"default": "mdi:volume-high"
|
"default": "mdi:volume-high"
|
||||||
|
@ -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": {
|
"event": {
|
||||||
"push": {
|
"push": {
|
||||||
"state_attributes": {
|
"state_attributes": {
|
||||||
|
@ -11,6 +11,10 @@
|
|||||||
"state": {
|
"state": {
|
||||||
"reverse": "mdi:rotate-left"
|
"reverse": "mdi:rotate-left"
|
||||||
}
|
}
|
||||||
|
},
|
||||||
|
"preset_mode": {
|
||||||
|
"default": "mdi:circle-medium",
|
||||||
|
"state": {}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user