1
0
mirror of https://github.com/home-assistant/core.git synced 2025-12-24 21:06:19 +00:00

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