Add init type hints [n-o] (#63190)
Co-authored-by: epenet <epenet@users.noreply.github.com>
This commit is contained in:
parent
d57c54c93e
commit
b6909feb8b
16 changed files with 55 additions and 34 deletions
|
@ -1,6 +1,7 @@
|
|||
"""Support to help onboard new users."""
|
||||
from homeassistant.core import callback
|
||||
from homeassistant.core import HomeAssistant, callback
|
||||
from homeassistant.helpers.storage import Store
|
||||
from homeassistant.helpers.typing import ConfigType
|
||||
from homeassistant.loader import bind_hass
|
||||
|
||||
from . import views
|
||||
|
@ -47,7 +48,7 @@ def async_is_user_onboarded(hass):
|
|||
return async_is_onboarded(hass) or STEP_USER in hass.data[DOMAIN]["done"]
|
||||
|
||||
|
||||
async def async_setup(hass, config):
|
||||
async def async_setup(hass: HomeAssistant, config: ConfigType) -> bool:
|
||||
"""Set up the onboarding component."""
|
||||
store = OnboadingStorage(hass, STORAGE_VERSION, STORAGE_KEY, private=True)
|
||||
if (data := await store.async_load()) is None:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue