393 files

This commit is contained in:
Home Assistant Version Control
2026-09-27 17:16:54 +00:00
parent b05b7a897e
commit 39d97ac2db
404 changed files with 54006 additions and 11034 deletions
@@ -111,12 +111,10 @@ class EntityAnalyzer:
async def _async_fetch_statistics(self, entity_id: str) -> StatisticsInfo | None:
"""Fetch long-term statistics from the HA recorder."""
try:
from homeassistant.components.recorder import ( # type: ignore[attr-defined]
get_instance,
)
from homeassistant.components.recorder.statistics import (
statistics_during_period,
)
from homeassistant.helpers.recorder import get_instance
except ImportError:
_LOGGER.debug("Recorder statistics module not available")
return None