mirror of
https://github.com/home-assistant/core.git
synced 2025-07-22 12:47:08 +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()
|
return await self.async_step_user()
|
||||||
|
|
||||||
|
|
||||||
class AxisOptionsFlowHandler(config_entries.OptionsFlow):
|
class AxisOptionsFlowHandler(config_entries.OptionsFlowWithConfigEntry):
|
||||||
"""Handle Axis device options."""
|
"""Handle Axis device options."""
|
||||||
|
|
||||||
def __init__(self, config_entry: ConfigEntry) -> None:
|
device: AxisNetworkDevice
|
||||||
"""Initialize Axis device options flow."""
|
|
||||||
self.config_entry = config_entry
|
|
||||||
self.options = dict(config_entry.options)
|
|
||||||
self.device: AxisNetworkDevice | None = None
|
|
||||||
|
|
||||||
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
|
||||||
@ -249,7 +245,6 @@ class AxisOptionsFlowHandler(config_entries.OptionsFlow):
|
|||||||
|
|
||||||
schema = {}
|
schema = {}
|
||||||
|
|
||||||
assert self.device
|
|
||||||
vapix = self.device.api.vapix
|
vapix = self.device.api.vapix
|
||||||
|
|
||||||
# Stream profiles
|
# Stream profiles
|
||||||
|
Loading…
x
Reference in New Issue
Block a user