Use OptionsFlowWithConfigEntry in bmw connected drive (#82904)
This commit is contained in:
parent
5be961f07f
commit
5599ab6e4a
1 changed files with 1 additions and 6 deletions
|
@ -94,14 +94,9 @@ class BMWConfigFlow(config_entries.ConfigFlow, domain=DOMAIN):
|
|||
return BMWOptionsFlow(config_entry)
|
||||
|
||||
|
||||
class BMWOptionsFlow(config_entries.OptionsFlow):
|
||||
class BMWOptionsFlow(config_entries.OptionsFlowWithConfigEntry):
|
||||
"""Handle a option flow for MyBMW."""
|
||||
|
||||
def __init__(self, config_entry: config_entries.ConfigEntry) -> None:
|
||||
"""Initialize MyBMW option flow."""
|
||||
self.config_entry = config_entry
|
||||
self.options = dict(config_entry.options)
|
||||
|
||||
async def async_step_init(
|
||||
self, user_input: dict[str, Any] | None = None
|
||||
) -> FlowResult:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue