1
0
mirror of https://github.com/home-assistant/core.git synced 2025-12-24 21:06:19 +00:00

Tweaks to options flow (#25969)

This commit is contained in:
Paulus Schoutsen
2019-08-15 14:11:55 -07:00
committed by GitHub
parent 9b3aa9bbd1
commit 8a1ab8c0b5
4 changed files with 28 additions and 21 deletions

View File

@@ -666,12 +666,11 @@ async def test_entry_options(hass, manager):
class TestFlow:
@staticmethod
@callback
def async_get_options_flow(config, options):
def async_get_options_flow(config_entry):
class OptionsFlowHandler(data_entry_flow.FlowHandler):
def __init__(self, config, options):
pass
pass
return OptionsFlowHandler(config, options)
return OptionsFlowHandler()
config_entries.HANDLERS["test"] = TestFlow()
flow = await manager.options._async_create_flow(