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:
@@ -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": [
|
||||
|
||||
Reference in New Issue
Block a user