mirror of
https://github.com/home-assistant/core.git
synced 2025-04-25 09:47:52 +00:00
Drop OptionsFlowWithConfigEntry usage in homeassistant_hardware (#130078)
* Drop OptionsFlowWithConfigEntry usage in homeassistant_hardware * Add homeassistant_hardware as other components rely on it * Maybe core_files not needed after all
This commit is contained in:
parent
b711b17193
commit
074418f8f7
@ -24,7 +24,6 @@ from homeassistant.config_entries import (
|
|||||||
ConfigFlow,
|
ConfigFlow,
|
||||||
ConfigFlowResult,
|
ConfigFlowResult,
|
||||||
OptionsFlow,
|
OptionsFlow,
|
||||||
OptionsFlowWithConfigEntry,
|
|
||||||
)
|
)
|
||||||
from homeassistant.core import callback
|
from homeassistant.core import callback
|
||||||
from homeassistant.data_entry_flow import AbortFlow
|
from homeassistant.data_entry_flow import AbortFlow
|
||||||
@ -496,13 +495,15 @@ class BaseFirmwareConfigFlow(BaseFirmwareInstallFlow, ConfigFlow):
|
|||||||
return await self.async_step_pick_firmware()
|
return await self.async_step_pick_firmware()
|
||||||
|
|
||||||
|
|
||||||
class BaseFirmwareOptionsFlow(BaseFirmwareInstallFlow, OptionsFlowWithConfigEntry):
|
class BaseFirmwareOptionsFlow(BaseFirmwareInstallFlow, OptionsFlow):
|
||||||
"""Zigbee and Thread options flow handlers."""
|
"""Zigbee and Thread options flow handlers."""
|
||||||
|
|
||||||
def __init__(self, *args: Any, **kwargs: Any) -> None:
|
def __init__(self, config_entry: ConfigEntry, *args: Any, **kwargs: Any) -> None:
|
||||||
"""Instantiate options flow."""
|
"""Instantiate options flow."""
|
||||||
super().__init__(*args, **kwargs)
|
super().__init__(*args, **kwargs)
|
||||||
|
|
||||||
|
self._config_entry = config_entry
|
||||||
|
|
||||||
self._probed_firmware_type = ApplicationType(self.config_entry.data["firmware"])
|
self._probed_firmware_type = ApplicationType(self.config_entry.data["firmware"])
|
||||||
|
|
||||||
# Make `context` a regular dictionary
|
# Make `context` a regular dictionary
|
||||||
|
Loading…
x
Reference in New Issue
Block a user