Enforce FanEntityFeature (#82458)

* Enforce FanEntityFeature

* Adjust pylint
This commit is contained in:
epenet 2022-11-22 07:13:54 +01:00 committed by GitHub
parent 34607d4410
commit 12cb17620e
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
7 changed files with 14 additions and 12 deletions

View file

@ -1290,7 +1290,7 @@ _INHERITANCE_MATCH: dict[str, list[ClassTypeHintMatch]] = {
),
TypeHintMatch(
function_name="supported_features",
return_type=["FanEntityFeature", "int"],
return_type="FanEntityFeature",
),
TypeHintMatch(
function_name="set_percentage",