Adjust diagnostics return types (#85525)

* Adjust diagnostics return types

* Replace dict with Mapping
This commit is contained in:
epenet 2023-01-13 09:17:54 +01:00 committed by GitHub
parent 9927bb3330
commit 1deb4c68f3
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 9 additions and 8 deletions

View file

@ -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": [