Add ComponentProtocol to improve type checking (#90586)
This commit is contained in:
parent
03137feba5
commit
611d4135fd
5 changed files with 77 additions and 17 deletions
|
@ -236,7 +236,7 @@ async def _async_setup_component(
|
|||
SLOW_SETUP_WARNING,
|
||||
)
|
||||
|
||||
task = None
|
||||
task: Awaitable[bool] | None = None
|
||||
result: Any | bool = True
|
||||
try:
|
||||
if hasattr(component, "async_setup"):
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue