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:
1 parent
e77bc12d81
commit
d004e73d99
2 files changed
+29
-7
No files matched your search
@@ -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
|
||||
|
||||
Reference in new issue
Block a user