1
0
mirror of https://github.com/home-assistant/core.git synced 2025-05-23 07:17:07 +00:00
2021-11-05 10:40:56 +01:00

15 lines
438 B
Python

"""Helpers to check recorder."""
from homeassistant.core import HomeAssistant
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
# pylint: disable-next=import-outside-toplevel
from homeassistant.components import recorder
return recorder.util.async_migration_in_progress(hass)