(self, path: Path | None = None)
| 158 | """CRUD store for named scenes, backed by a JSON file.""" |
| 159 | |
| 160 | def __init__(self, path: Path | None = None) -> None: |
| 161 | self._path = path or _SCENES_FILE |
| 162 | self._scenes: dict[str, SceneConfig] = {} |
| 163 | self._load() |
| 164 | |
| 165 | def _load(self) -> None: |
| 166 | """Load scenes from disk. Silently ignores corrupt files.""" |