Add get_alias for get_feature

This commit is contained in:
Steven B
2024-11-23 11:37:00 +00:00
parent cc9930ecc6
commit 6ca0493406
2 changed files with 6 additions and 0 deletions

View File

@@ -21,3 +21,6 @@ class Fan(Module, ABC):
self, level: int
) -> Annotated[dict, FeatureAttribute()]:
"""Set fan speed level."""
Fan.get_fan_speed_level = Fan.fan_speed_level.fget # type: ignore[attr-defined]