Adjust diagnostics return types (#85525)
* Adjust diagnostics return types * Replace dict with Mapping
This commit is contained in:
parent
9927bb3330
commit
1deb4c68f3
2 changed files with 9 additions and 8 deletions
|
@ -375,7 +375,7 @@ _FUNCTION_MATCH: dict[str, list[TypeHintMatch]] = {
|
|||
0: "HomeAssistant",
|
||||
1: "ConfigEntry",
|
||||
},
|
||||
return_type=_Special.UNDEFINED,
|
||||
return_type="Mapping[str, Any]",
|
||||
),
|
||||
TypeHintMatch(
|
||||
function_name="async_get_device_diagnostics",
|
||||
|
@ -384,7 +384,7 @@ _FUNCTION_MATCH: dict[str, list[TypeHintMatch]] = {
|
|||
1: "ConfigEntry",
|
||||
2: "DeviceEntry",
|
||||
},
|
||||
return_type=_Special.UNDEFINED,
|
||||
return_type="Mapping[str, Any]",
|
||||
),
|
||||
],
|
||||
"notify": [
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue