mirror of
https://github.com/home-assistant/core.git
synced 2025-07-21 12:17:07 +00:00
Use OptionsFlowWithConfigEntry in axis (#82804)
This commit is contained in:
parent
cb06f8b668
commit
ec823582eb
@ -223,14 +223,10 @@ class AxisFlowHandler(config_entries.ConfigFlow, domain=AXIS_DOMAIN):
|
||||
return await self.async_step_user()
|
||||
|
||||
|
||||
class AxisOptionsFlowHandler(config_entries.OptionsFlow):
|
||||
class AxisOptionsFlowHandler(config_entries.OptionsFlowWithConfigEntry):
|
||||
"""Handle Axis device options."""
|
||||
|
||||
def __init__(self, config_entry: ConfigEntry) -> None:
|
||||
"""Initialize Axis device options flow."""
|
||||
self.config_entry = config_entry
|
||||
self.options = dict(config_entry.options)
|
||||
self.device: AxisNetworkDevice | None = None
|
||||
device: AxisNetworkDevice
|
||||
|
||||
async def async_step_init(
|
||||
self, user_input: dict[str, Any] | None = None
|
||||
@ -249,7 +245,6 @@ class AxisOptionsFlowHandler(config_entries.OptionsFlow):
|
||||
|
||||
schema = {}
|
||||
|
||||
assert self.device
|
||||
vapix = self.device.api.vapix
|
||||
|
||||
# Stream profiles
|
||||
|
Loading…
x
Reference in New Issue
Block a user