fix(tests): drop the speculative config-entries install guard — the scoped-stub teardowns already isolate per file; full suite green both variants (completes t30 G6)

This commit is contained in:
James Mackay committed 2026-10-09 07:46:53 +01:00
1 parent e77bc12d81
commit d004e73d99
2 files changed
+29 -7

No files matched your search

-6
View File
@@ -113,12 +113,6 @@ def install() -> None:
"""Register the stub modules (idempotent)."""
if "homeassistant.components.media_player" in sys.modules:
return
# honor per-file flow stub versions already in place (e.g. the
# config-flow/pairing/protocol files) — the hub's base would strip the
# base plumbing the flow tests already installed (t30 leak).
ce = sys.modules.get("homeassistant.config_entries")
if ce is not None and hasattr(ce, "OptionsFlowWithReload"):
return
vol = types.ModuleType("voluptuous")
vol.Required = lambda key, default=None: key