test(entity_stublib): ConfigFlow stub accepts the domain= __init_subclass__ kwarg and load_entity_modules drops config_flow (per-file loader ownership preserved) (completes P5-2 test scaffolding)
This commit is contained in:
1 parent
a3b397920e
commit
0ecee66953
1 file changed
+10
-1
+10
-1
@@ -121,7 +121,16 @@ def install() -> None:
|
||||
|
||||
config_entries = types.ModuleType("homeassistant.config_entries")
|
||||
config_entries.ConfigEntry = type("ConfigEntry", (), {})
|
||||
config_entries.ConfigFlow = type("ConfigFlow", (), {})
|
||||
_config_flow_base = type(
|
||||
"ConfigFlow",
|
||||
(),
|
||||
{
|
||||
"__init_subclass__": classmethod(
|
||||
lambda cls, domain=None, **kwargs: None
|
||||
),
|
||||
},
|
||||
)
|
||||
config_entries.ConfigFlow = _config_flow_base
|
||||
config_entries.OptionsFlow = type("OptionsFlow", (), {})
|
||||
sys.modules["homeassistant.config_entries"] = config_entries
|
||||
|
||||
|
||||
Reference in new issue
Block a user