mirror of
https://github.com/home-assistant/core.git
synced 2026-10-06 14:29:21 -04:00
Build the ViCare fan attributes per entity (#183567)
This commit is contained in:
@@ -120,7 +120,6 @@ class ViCareFan(ViCareEntity, FanEntity):
|
||||
|
||||
_attr_speed_count = len(ORDERED_NAMED_FAN_SPEEDS)
|
||||
_attr_translation_key = "ventilation"
|
||||
_attributes: dict[str, Any] = {}
|
||||
|
||||
def __init__(
|
||||
self,
|
||||
@@ -149,6 +148,7 @@ class ViCareFan(ViCareEntity, FanEntity):
|
||||
self._attr_supported_features |= FanEntityFeature.SET_SPEED
|
||||
|
||||
# evaluate quickmodes
|
||||
self._attributes: dict[str, Any] = {}
|
||||
self._attributes["vicare_quickmodes"] = quickmodes = list[str](
|
||||
device.getVentilationQuickmodes()
|
||||
if is_supported(
|
||||
|
||||
@@ -59,9 +59,8 @@
|
||||
]),
|
||||
<EntityStateAttribute.SUPPORTED_FEATURES: 'supported_features'>: <FanEntityFeature: 9>,
|
||||
'vicare_quickmodes': list([
|
||||
'comfort',
|
||||
'eco',
|
||||
'holiday',
|
||||
'forcedLevelFour',
|
||||
'silent',
|
||||
]),
|
||||
}),
|
||||
'context': <ANY>,
|
||||
@@ -130,9 +129,9 @@
|
||||
]),
|
||||
<EntityStateAttribute.SUPPORTED_FEATURES: 'supported_features'>: <FanEntityFeature: 25>,
|
||||
'vicare_quickmodes': list([
|
||||
'comfort',
|
||||
'eco',
|
||||
'holiday',
|
||||
'forcedLevelFour',
|
||||
'standby',
|
||||
'silent',
|
||||
]),
|
||||
}),
|
||||
'context': <ANY>,
|
||||
|
||||
Reference in New Issue
Block a user