Fix hue discovery popping up (#14614)

* Fix hue discovery popping up

* Fix result

* Fix tests
This commit is contained in:
Paulus Schoutsen authored and GitHub committed 2018-05-24 14:24:14 -04:00
1 parent 4fb4838bde
commit fa9b9105a8
5 files changed
+38 -11

No files matched your search

+3
View File
@@ -347,6 +347,9 @@ class AuthManager:
async def _async_finish_login_flow(self, result):
"""Result of a credential login flow."""
if result['type'] != data_entry_flow.RESULT_TYPE_CREATE_ENTRY:
return None
auth_provider = self._providers[result['handler']]
return await auth_provider.async_get_or_create_credentials(
result['data'])