Add init type hints [n-o] (#63190)

Co-authored-by: epenet <epenet@users.noreply.github.com>
This commit is contained in:
epenet 2022-01-01 22:39:38 +01:00 committed by GitHub
parent d57c54c93e
commit b6909feb8b
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
16 changed files with 55 additions and 34 deletions

View file

@ -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: