mirror of
https://github.com/home-assistant/core.git
synced 2025-08-01 03:35:09 +02:00
Move async_migration_in_progress (#59087)
This commit is contained in:
@@ -4,12 +4,11 @@
|
||||
from homeassistant.core import HomeAssistant
|
||||
|
||||
|
||||
async def async_migration_in_progress(hass: HomeAssistant) -> bool:
|
||||
def async_migration_in_progress(hass: HomeAssistant) -> bool:
|
||||
"""Check to see if a recorder migration is in progress."""
|
||||
if "recorder" not in hass.config.components:
|
||||
return False
|
||||
from homeassistant.components import ( # pylint: disable=import-outside-toplevel
|
||||
recorder,
|
||||
)
|
||||
# pylint: disable-next=import-outside-toplevel
|
||||
from homeassistant.components import recorder
|
||||
|
||||
return await recorder.async_migration_in_progress(hass)
|
||||
return recorder.util.async_migration_in_progress(hass)
|
||||
|
Reference in New Issue
Block a user