Bound subdevice discovery during setup
This commit is contained in:
1 parent
ba5a3b529d
commit
71f2101d11
4 files changed
+258
-17
No files matched your search
@@ -253,6 +253,23 @@ async def test_fac_bora_2in1_unique_ids_include_subdevice_prefix(hass: HomeAssis
|
||||
# capture instead of the synthetic sessions test_subdevices.py uses.
|
||||
# ---------------------------------------------------------------------------
|
||||
|
||||
async def test_flat_probe_priority_puts_live_climate_state_before_cold_metrics(
|
||||
hass: HomeAssistant,
|
||||
):
|
||||
"""Registry metadata drives fallback order without a model-specific list."""
|
||||
resources, _oic_res, _seeds = _load_device_full(
|
||||
'airconditioner_fac_bora_205_flat'
|
||||
)
|
||||
coordinator = _coordinator(hass)
|
||||
|
||||
priority = coordinator._subdevice_probe_priority(resources)
|
||||
|
||||
assert '/mode/vs/0' in priority[:4]
|
||||
assert priority.index('/mode/vs/0') < priority.index(
|
||||
'/energy/consumption/vs/0'
|
||||
)
|
||||
|
||||
|
||||
async def test_fac_bora_205_flat_fallback_finds_candidate_but_gate_holds_it_back(
|
||||
hass: HomeAssistant,
|
||||
):
|
||||
|
||||
Reference in new issue
Block a user