Add strict typing to core.py
(5) - Task (#63243)
This commit is contained in:
parent
ae3ff0a8ce
commit
54cb1e7556
4 changed files with 115 additions and 25 deletions
|
@ -77,7 +77,7 @@ async def async_setup_component(
|
|||
)
|
||||
|
||||
try:
|
||||
return await task # type: ignore
|
||||
return await task
|
||||
finally:
|
||||
if domain in hass.data.get(DATA_SETUP_DONE, {}):
|
||||
hass.data[DATA_SETUP_DONE].pop(domain).set()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue