mirror of
https://github.com/home-assistant/core.git
synced 2025-07-08 05:47: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)
|
||||
|
||||
|
||||
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…
x
Reference in New Issue
Block a user