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:
Everything Smart Home 2022-07-13 18:58:36 +01:00 committed by GitHub
parent 2169d839ce
commit 4a36318d56
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

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