fix(registry): route TP1X_DA-AC-CAC boards to airconditioner (#191)

The 0.16.0 device-type simplification dropped oneUiVersion detection on
the assumption every device it typed was already reachable via a modelNum
board token. Cassette AC units (TP1X_DA-AC-CAC-01001_0000) were the one
exception -- they only ever resolved through oneUiVersion's "Air
conditioner" string, since 'CAC' was never added to the board-token
table -- so they silently fell back to common caps and lost their
climate entity.
This commit is contained in:
Marc Billow committed 2026-07-29 12:50:21 +00:00
1 parent 119a4f443c
commit 7fe9e2a975
2 files changed
+15 -1

No files matched your search

+13
View File
@@ -238,6 +238,19 @@ class TestForDeviceByModel:
assert reg is not None
assert reg.name == 'airconditioner'
def test_airconditioner_via_cac_token(self):
"""Issue #191: a cassette AC (TP1X_DA-AC-CAC-01001_0000) regressed to
'unknown'/common-caps in 0.16.0 when oneUiVersion detection was
dropped -- 'CAC' had never been added to the modelNum board-token
table, only reachable before via oneUiVersion's '7.0 Air conditioner'."""
from custom_components.localthings.registry.by_type import for_device_by_model
reg = for_device_by_model(
'TP1X_DA-AC-CAC-01001_0000|10255541|60030748171811DF42005F2A00F2ED00',
'TP1X_DA-AC-CAC-01001_0000',
)
assert reg is not None
assert reg.name == 'airconditioner'
def test_dehumidifier_via_dhm_token(self):
"""Issue #88: a dehumidifier (AY18CG7500GED) shares the DA_AC_ board
family with the room-AC models but reports no oneUiVersion and