mirror of
https://github.com/home-assistant/core.git
synced 2025-07-08 22:07:10 +00:00
Use OptionsFlowWithConfigEntry in bmw connected drive (#82904)
This commit is contained in:
parent
5be961f07f
commit
5599ab6e4a
@ -94,14 +94,9 @@ class BMWConfigFlow(config_entries.ConfigFlow, domain=DOMAIN):
|
|||||||
return BMWOptionsFlow(config_entry)
|
return BMWOptionsFlow(config_entry)
|
||||||
|
|
||||||
|
|
||||||
class BMWOptionsFlow(config_entries.OptionsFlow):
|
class BMWOptionsFlow(config_entries.OptionsFlowWithConfigEntry):
|
||||||
"""Handle a option flow for MyBMW."""
|
"""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(
|
async def async_step_init(
|
||||||
self, user_input: dict[str, Any] | None = None
|
self, user_input: dict[str, Any] | None = None
|
||||||
) -> FlowResult:
|
) -> FlowResult:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user