Skip to content

Commit 19b6068

Browse files
authored
Mark fan entity type hints as mandatory (home-assistant#163789)
1 parent abdd51c commit 19b6068

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

pylint/plugins/hass_enforce_type_hints.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1597,6 +1597,7 @@ class ClassTypeHintMatch:
15971597
TypeHintMatch(
15981598
function_name="percentage",
15991599
return_type=["int", None],
1600+
mandatory=True,
16001601
),
16011602
TypeHintMatch(
16021603
function_name="speed_count",
@@ -1611,10 +1612,12 @@ class ClassTypeHintMatch:
16111612
TypeHintMatch(
16121613
function_name="current_direction",
16131614
return_type=["str", None],
1615+
mandatory=True,
16141616
),
16151617
TypeHintMatch(
16161618
function_name="oscillating",
16171619
return_type=["bool", None],
1620+
mandatory=True,
16181621
),
16191622
TypeHintMatch(
16201623
function_name="preset_mode",
@@ -1624,6 +1627,7 @@ class ClassTypeHintMatch:
16241627
TypeHintMatch(
16251628
function_name="preset_modes",
16261629
return_type=["list[str]", None],
1630+
mandatory=True,
16271631
),
16281632
TypeHintMatch(
16291633
function_name="supported_features",

0 commit comments

Comments
 (0)