"""Make the repository root importable so tests can load custom_components.""" import pathlib import sys sys.path.insert(0, str(pathlib.Path(__file__).resolve().parent.parent))