feat(registry): route AVT-WW-TP1-23 air purifier boards (#190)
AVT-WW-TP1-23-AXX500 (AX053B810HGD) reported device_type 'unknown' with empty oneUiVersion, falling back to common caps. It's the same BESPOKE Cube Air lineage as A-VTWW-TP2-21-COMMON (issue #151), just with the '-WW-' delimiter shifted one letter left ('A-VTWW-' -> 'AVT-WW-'), which splits into an 'AVT'/'WW' token pair the existing whole-token 'VTWW' entry can't see. Added 'AVT' as its own board token onto the same air_purifier registry -- the resource surface (wind/strength fan, HEPA filter, air quality sensors, alarms) already matched with zero unbound hrefs once routed there, so no new capabilities were needed.
This commit is contained in:
@@ -859,6 +859,23 @@ def test_registry_reproduces_golden_state_keys_for_airconditioner_fac_bora():
|
||||
)
|
||||
|
||||
|
||||
def test_registry_reproduces_golden_state_keys_for_air_purifier_avt_ww():
|
||||
"""AVT-WW-TP1-23-AXX500 (issue #190) -- next-gen BESPOKE Cube Air board;
|
||||
reports device_type 'unknown' with empty oneUiVersion because 'VTWW' as a
|
||||
whole token doesn't match this board's 'AVT'/'WW' split. Resolved via the
|
||||
new 'AVT' modelNum board-token fallback into the existing air_purifier
|
||||
registry. Binds cleanly with zero unbound hrefs."""
|
||||
from tests.conftest import _load_device
|
||||
resources = _load_device('air_purifier_avt_ww')
|
||||
golden = json.loads((GOLDEN / 'air_purifier_avt_ww.json').read_text())
|
||||
state_keys = _new_state_keys('air_purifier_avt_ww', resources)
|
||||
assert set(state_keys) == set(golden['state_keys']), (
|
||||
f"state_keys mismatch:\n"
|
||||
f" extra: {sorted(set(state_keys) - set(golden['state_keys']))}\n"
|
||||
f" missing: {sorted(set(golden['state_keys']) - set(state_keys))}"
|
||||
)
|
||||
|
||||
|
||||
def test_registry_reproduces_golden_state_keys_for_airconditioner_artik051_krac_energy():
|
||||
"""AR12NXWXCWKNEU/ARTIK051_KRAC_18K (issue #193) -- same legacy board
|
||||
generation as the artik051_krac_18k fixture, but this dump has a nonzero
|
||||
|
||||
Reference in New Issue
Block a user