mirror of
https://github.com/home-assistant/core.git
synced 2025-11-09 19:09:32 +00:00
Enforce NumberDeviceClass in number entities (#83402)
This commit is contained in:
@@ -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",
|
||||
|
||||
Reference in New Issue
Block a user