Enforce NumberDeviceClass in number entities (#83402)
This commit is contained in:
parent
647469f472
commit
ba0d6fe611
3 changed files with 14 additions and 3 deletions
|
@ -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",
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue