Use common strings for somfy config flow (#40594)

This commit is contained in:
Rob Bierbooms 2020-09-26 13:30:49 +02:00 committed by GitHub
parent c011f3fa95
commit f6435affe9
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 6 additions and 4 deletions

View file

@ -24,6 +24,6 @@ class SomfyFlowHandler(config_entry_oauth2_flow.AbstractOAuth2FlowHandler):
async def async_step_user(self, user_input=None):
"""Handle a flow start."""
if self.hass.config_entries.async_entries(DOMAIN):
return self.async_abort(reason="already_setup")
return self.async_abort(reason="single_instance_allowed")
return await super().async_step_user(user_input)