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.
17 lines
496 B
Python
17 lines
496 B
Python
"""Re-export of :mod:`core.dao_rules` for the integration package.
|
|
|
|
The schedule-rules/quest-definitions DAO lives in
|
|
:mod:`core.dao_rules` (extracted in task d0b691d8); this module
|
|
re-exports it so existing ``from .dao_rules import ...`` references
|
|
inside the integration keep working.
|
|
"""
|
|
from __future__ import annotations
|
|
|
|
from .core.dao_rules import * # noqa: F401,F403
|
|
from .core.dao_rules import ( # noqa: F401
|
|
_UNSET,
|
|
_validate_date,
|
|
_validate_time,
|
|
_validate_window,
|
|
)
|