Files
NestQuest/custom_components/nestquest/recurrence.py
T
overseer fb3c6601c1 Bundle core inside the integration
HACS and the manual install copy only custom_components/nestquest, so
the integration shipped with a top-level 'core' package that was never
deployed and failed with ModuleNotFoundError: No module named 'core'.

Move core/ into custom_components/nestquest/core/, repoint the
re-export shims to relative '.core.X' imports, and update tests
(import paths, monkeypatch targets, caplog logger) to the new
'custom_components.nestquest.core.X' location. The integration is now
self-contained: nothing under custom_components/nestquest reaches
outside its own tree, the migrations logger becomes
custom_components.nestquest.core.migrations, and the SQL-leak guard
allowlists point at the new core/ paths.

uv run pytest -q: 1496 passed.
2026-09-21 14:28:49 -04:00

12 lines
437 B
Python

"""Re-export of :mod:`core.recurrence` for the integration package.
The recurrence model lives in :mod:`core.recurrence` (extracted in task
d0b691d8); this module re-exports it so existing
``from .recurrence import ...`` references inside the integration keep
working.
"""
from __future__ import annotations
from .core.recurrence import * # noqa: F401,F403
from .core.recurrence import _month_end, _nth_weekday_of_month # noqa: F401