Improve Smappee integration (#37087)

This commit is contained in:
bsmappee 2020-06-26 19:46:14 +02:00 committed by GitHub
parent fe5bf96e5d
commit 680f8f8d5a
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
7 changed files with 41 additions and 35 deletions

View file

@ -21,10 +21,3 @@ class SmappeeFlowHandler(
def logger(self) -> logging.Logger:
"""Return logger."""
return logging.getLogger(__name__)
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="single_instance_allowed")
return await super().async_step_user(user_input)