mirror of
https://github.com/home-assistant/core.git
synced 2025-04-24 01:08:12 +00:00
Add Aqara E1 curtain motor direction select entity to ZHA (#75132)
* Add direction change select option for Aqara Curtain * Add direction change select option for Aqara Curtain
This commit is contained in:
parent
2169d839ce
commit
4a36318d56
@ -264,3 +264,20 @@ class AqaraApproachDistance(ZCLEnumSelectEntity, id_suffix="approach_distance"):
|
||||
|
||||
_select_attr = "approach_distance"
|
||||
_enum = AqaraApproachDistances
|
||||
|
||||
|
||||
class AqaraE1ReverseDirection(types.enum8):
|
||||
"""Aqara curtain reversal."""
|
||||
|
||||
Normal = 0x00
|
||||
Inverted = 0x01
|
||||
|
||||
|
||||
@CONFIG_DIAGNOSTIC_MATCH(
|
||||
channel_names="window_covering", models={"lumi.curtain.agl001"}
|
||||
)
|
||||
class AqaraCurtainMode(ZCLEnumSelectEntity, id_suffix="window_covering_mode"):
|
||||
"""Representation of a ZHA curtain mode configuration entity."""
|
||||
|
||||
_select_attr = "window_covering_mode"
|
||||
_enum = AqaraE1ReverseDirection
|
||||
|
Loading…
x
Reference in New Issue
Block a user