mirror of
https://github.com/home-assistant/core.git
synced 2025-05-22 14:57:14 +00:00
Drop unused argument in hassio (#92820)
This commit is contained in:
parent
04c298b772
commit
cc9de2cc21
@ -590,7 +590,7 @@ async def async_setup(hass: HomeAssistant, config: ConfigType) -> bool: # noqa:
|
|||||||
await async_setup_addon_panel(hass, hassio)
|
await async_setup_addon_panel(hass, hassio)
|
||||||
|
|
||||||
# Setup hardware integration for the detected board type
|
# Setup hardware integration for the detected board type
|
||||||
async def _async_setup_hardware_integration(_: datetime) -> None:
|
async def _async_setup_hardware_integration(_: datetime | None = None) -> None:
|
||||||
"""Set up hardaware integration for the detected board type."""
|
"""Set up hardaware integration for the detected board type."""
|
||||||
if (os_info := get_os_info(hass)) is None:
|
if (os_info := get_os_info(hass)) is None:
|
||||||
# os info not yet fetched from supervisor, retry later
|
# os info not yet fetched from supervisor, retry later
|
||||||
@ -610,7 +610,7 @@ async def async_setup(hass: HomeAssistant, config: ConfigType) -> bool: # noqa:
|
|||||||
)
|
)
|
||||||
)
|
)
|
||||||
|
|
||||||
await _async_setup_hardware_integration(datetime.now())
|
await _async_setup_hardware_integration()
|
||||||
|
|
||||||
hass.async_create_task(
|
hass.async_create_task(
|
||||||
hass.config_entries.flow.async_init(DOMAIN, context={"source": "system"})
|
hass.config_entries.flow.async_init(DOMAIN, context={"source": "system"})
|
||||||
|
Loading…
x
Reference in New Issue
Block a user