Add strict typing to core.py (5) - Task (#63243)

This commit is contained in:
Marc Mueller 2022-01-07 16:48:34 +01:00 committed by GitHub
parent ae3ff0a8ce
commit 54cb1e7556
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
4 changed files with 115 additions and 25 deletions

View file

@ -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()