Enforce NumberDeviceClass in number entities (#83402)

This commit is contained in:
Franck Nijhof
2022-12-06 14:58:22 +01:00
committed by GitHub
parent 647469f472
commit ba0d6fe611
3 changed files with 14 additions and 3 deletions

View File

@@ -1987,7 +1987,7 @@ _INHERITANCE_MATCH: dict[str, list[ClassTypeHintMatch]] = {
matches=[
TypeHintMatch(
function_name="device_class",
return_type=["NumberDeviceClass", "str", None],
return_type=["NumberDeviceClass", None],
),
TypeHintMatch(
function_name="capability_attributes",