1
0
mirror of https://github.com/home-assistant/core.git synced 2026-05-08 17:49:37 +01:00

Mark fan entity type hints as mandatory (#163789)

This commit is contained in:
epenet
2026-02-22 21:44:53 +01:00
committed by GitHub
parent abdd51c266
commit 19b606841d
@@ -1597,6 +1597,7 @@ _INHERITANCE_MATCH: dict[str, list[ClassTypeHintMatch]] = {
TypeHintMatch(
function_name="percentage",
return_type=["int", None],
mandatory=True,
),
TypeHintMatch(
function_name="speed_count",
@@ -1611,10 +1612,12 @@ _INHERITANCE_MATCH: dict[str, list[ClassTypeHintMatch]] = {
TypeHintMatch(
function_name="current_direction",
return_type=["str", None],
mandatory=True,
),
TypeHintMatch(
function_name="oscillating",
return_type=["bool", None],
mandatory=True,
),
TypeHintMatch(
function_name="preset_mode",
@@ -1624,6 +1627,7 @@ _INHERITANCE_MATCH: dict[str, list[ClassTypeHintMatch]] = {
TypeHintMatch(
function_name="preset_modes",
return_type=["list[str]", None],
mandatory=True,
),
TypeHintMatch(
function_name="supported_features",