Fix hue discovery popping up (#14614)

* Fix hue discovery popping up

* Fix result

* Fix tests
This commit is contained in:
Paulus Schoutsen 2018-05-24 14:24:14 -04:00 committed by GitHub
parent 4fb4838bde
commit fa9b9105a8
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
5 changed files with 38 additions and 11 deletions

View file

@ -21,7 +21,8 @@ def manager():
return handler()
async def async_add_entry(result):
entries.append(result)
if (result['type'] == data_entry_flow.RESULT_TYPE_CREATE_ENTRY):
entries.append(result)
manager = data_entry_flow.FlowManager(
None, async_create_flow, async_add_entry)