fix(media_player): the adb_command participant registry key is computed once at registration and stored on the entity — add/remove always match (F4)

This commit is contained in:
James Mackay committed 2026-10-08 11:21:09 +01:00
1 parent c44c2c2170
commit b37a14b920
5 files changed
+147 -60

No files matched your search

+3 -2
View File
@@ -31,6 +31,7 @@ ENTITIES_STUB_NAMES = (
"nsh.power",
"nsh.jellyfin",
"nsh.media_player",
"nsh.diagnostics",
"nsh.remote",
)
@@ -206,12 +207,12 @@ def load_entity_modules() -> dict:
install()
from conftest import _SHIELD_DIR, _load_module
for name in ("helpers", "power", "jellyfin", "media_player", "remote"):
for name in ("helpers", "power", "jellyfin", "media_player", "remote", "diagnostics"):
if f"nsh.{name}" not in sys.modules:
_load_module(f"nsh.{name}", _SHIELD_DIR / f"{name}.py")
return {
name: sys.modules[f"nsh.{name}"]
for name in ("power", "jellyfin", "media_player", "remote")
for name in ("power", "jellyfin", "media_player", "remote", "diagnostics")
}