From 5b814daf864832425bca38a94a0cf344b40877cc Mon Sep 17 00:00:00 2001 From: Mac Book Date: Wed, 7 Oct 2026 20:32:30 +0300 Subject: [PATCH] test: accept the OWNd#88 holiday readings for 13xxx/23xxx The vendored OWNd edge tests asserted the pre-#88 'auto' reading for *4*13001*1## and *4*23001*1##, which makes OWNd's downstream MyHOME job fail on OpenWebNet-HA/OWNd#88. Accept both readings until the OWNd pin moves past #88. Co-Authored-By: Claude Opus 5.5 --- tests/test_message_edges.py | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/tests/test_message_edges.py b/tests/test_message_edges.py index 4c1d81a86..4b0080cf0 100644 --- a/tests/test_message_edges.py +++ b/tests/test_message_edges.py @@ -186,15 +186,19 @@ def test_mode_auto_variant_315(self): assert isinstance(msg, OWNHeatingEvent) assert msg.mode == CLIMATE_MODE_AUTO - def test_mode_auto_weekly_23001(self): + def test_mode_holiday_23001(self): + # OWNd <= 2.0.0b10 reads 23xxx as auto; OpenWebNet-HA/OWNd#88 reads it + # as the conditioning-season holiday (Legrand WHO 4 p. 5 / p. 64). + # Accept both until the pin moves past #88. msg = OWNEvent.parse("*4*23001*1##") assert isinstance(msg, OWNHeatingEvent) - assert msg.mode == CLIMATE_MODE_AUTO + assert msg.mode in (CLIMATE_MODE_AUTO, CLIMATE_MODE_COOL) - def test_mode_auto_weekly_13001(self): + def test_mode_holiday_13001(self): + # Same transition as above for the heating-season holiday (13xxx). msg = OWNEvent.parse("*4*13001*1##") assert isinstance(msg, OWNHeatingEvent) - assert msg.mode == CLIMATE_MODE_AUTO + assert msg.mode in (CLIMATE_MODE_AUTO, CLIMATE_MODE_HEAT) def test_unknown_mode(self): msg = OWNEvent.parse("*4*999*1##")