Add ComponentProtocol to improve type checking (#90586)

This commit is contained in:
epenet
2023-03-31 20:19:58 +02:00
committed by GitHub
parent 03137feba5
commit 611d4135fd
5 changed files with 77 additions and 17 deletions

View File

@@ -202,6 +202,14 @@ _FUNCTION_MATCH: dict[str, list[TypeHintMatch]] = {
},
return_type="bool",
),
TypeHintMatch(
function_name="async_reset_platform",
arg_types={
0: "HomeAssistant",
1: "str",
},
return_type=None,
),
],
"__any_platform__": [
TypeHintMatch(