From 97bbcf55d95db39b1d55824eaa727445d3baa56c Mon Sep 17 00:00:00 2001 From: "J. Nick Koston" Date: Sat, 8 Aug 2026 23:53:45 -0500 Subject: [PATCH] Describe the ladder arm's real safety net in the test docstring --- tests/component_tests/ble_device_base/test_hub_binding.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/tests/component_tests/ble_device_base/test_hub_binding.py b/tests/component_tests/ble_device_base/test_hub_binding.py index 4f9aa56ccd..59aecc461b 100644 --- a/tests/component_tests/ble_device_base/test_hub_binding.py +++ b/tests/component_tests/ble_device_base/test_hub_binding.py @@ -222,8 +222,10 @@ def test_every_tracker_emits_its_alias_define( """Each tracker's codegen must emit its USE_*_BLE_TRACKER define - the ble_hub_impl.h alias ladder selects on it. Checked through real codegen (the other two legs of the invariant, the ladder arm and the defines.h - mirror, are compile-enforced: a missing arm fails every consumer build on - that platform and clang-tidy compiles each arm's static_assert).""" + mirror, are compile-enforced: a missing arm fails any build containing a + BLEHub consumer - today bluetooth_proxy, which CI compiles or tidy-parses + on every tracker platform - and clang-tidy compiles each arm's + static_assert).""" generate_main(component_config_path(config_name)) assert define in {d.name for d in CORE.defines}, f"{define} not emitted by codegen"