Fix explict return in tesla config flow (#46377)

This commit is contained in:
J. Nick Koston 2021-02-10 23:24:31 -10:00 committed by GitHub
parent 29d8b8a22f
commit f9f4c0aeed
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -106,6 +106,7 @@ class TeslaConfigFlow(config_entries.ConfigFlow, domain=DOMAIN):
for entry in self._async_current_entries():
if entry.data.get(CONF_USERNAME) == username:
return entry
return None
class OptionsFlowHandler(config_entries.OptionsFlow):