Check that importing logger leaves zephyr unloaded too

Claude-Session: https://claude.ai/code/session_01SNtpffGmahyG2wHi2Gq81k
This commit is contained in:
J. Nick Koston
2026-10-14 08:47:10 -10:00
parent 4d8c74274a
commit 1e9dfc5fb5
+2 -1
View File
@@ -29,7 +29,8 @@ def test_dir_does_not_import_platform_packages() -> None:
check = (
"import sys; from esphome.components import logger; dir(logger); "
"print(','.join(m for m in ('esphome.components.esp32', "
"'esphome.components.libretiny') if m in sys.modules))"
"'esphome.components.libretiny', 'esphome.components.zephyr') "
"if m in sys.modules))"
)
result = subprocess.run(
[sys.executable, "-c", check], capture_output=True, text=True, check=True