Verify withings config (#26698)

This commit is contained in:
Paulus Schoutsen 2019-09-17 13:45:48 -07:00 committed by GitHub
parent 9114ed36cd
commit c6fc677f5b
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 19 additions and 26 deletions

View file

@ -88,7 +88,10 @@ class WithingsFlowHandler(config_entries.ConfigFlow):
async def async_step_user(self, user_input=None):
"""Create an entry for selecting a profile."""
flow = self.hass.data.get(DATA_FLOW_IMPL, {})
flow = self.hass.data.get(DATA_FLOW_IMPL)
if not flow:
return self.async_abort(reason="no_flows")
if user_input:
return await self.async_step_auth(user_input)