Add integration step to onboarding (#23732)
* Return an extra oauth2 auth code during onboarding * Areas in const * Add integration step * Lint * Fix tests * Fix test * Verify integration added to done * Verify step is marked as done
This commit is contained in:
1 parent
07ee3b2eb9
commit
f4016b4aad
9 files changed
+205
-25
No files matched your search
@@ -97,8 +97,7 @@ class AuthProvidersView(HomeAssistantView):
|
||||
async def get(self, request):
|
||||
"""Get available auth providers."""
|
||||
hass = request.app['hass']
|
||||
|
||||
if not hass.components.onboarding.async_is_onboarded():
|
||||
if not hass.components.onboarding.async_is_user_onboarded():
|
||||
return self.json_message(
|
||||
message='Onboarding not finished',
|
||||
status_code=400,
|
||||
|
||||
Reference in new issue
Block a user