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
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
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",