From d015e52a7697c0a8c8fe243714feb637eba27cad Mon Sep 17 00:00:00 2001 From: Bouwe Date: Sun, 5 Nov 2023 09:50:03 +0100 Subject: [PATCH 1/3] Change control_state to preheating, correct mistake --- scripts/manual_fixtures.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/scripts/manual_fixtures.py b/scripts/manual_fixtures.py index 0e9ad7f45..dff529788 100755 --- a/scripts/manual_fixtures.py +++ b/scripts/manual_fixtures.py @@ -179,8 +179,8 @@ def json_writer( m_adam_heating = m_adam_cooling.copy() -# Set cooling_present to true -m_adam_cooling["gateway"]["cooling_present"] = False +# Set cooling_present to false +m_adam_heating["gateway"]["cooling_present"] = False # Correct setpoint for "ad4838d7d35c4d6ea796ee12ae5aedf8" m_adam_heating["devices"]["ad4838d7d35c4d6ea796ee12ae5aedf8"]["thermostat"][ @@ -189,7 +189,7 @@ def json_writer( m_adam_heating["devices"]["ad4838d7d35c4d6ea796ee12ae5aedf8"][ "control_state" -] = "heating" +] = "preheating" m_adam_heating["devices"]["ad4838d7d35c4d6ea796ee12ae5aedf8"]["mode"] = "heat" # Back at ad48 From 6323752fc2adb09d4f1b8aabaf834626e254f4ea Mon Sep 17 00:00:00 2001 From: Bouwe Date: Sun, 5 Nov 2023 09:54:47 +0100 Subject: [PATCH 2/3] Save updated fixture --- fixtures/m_adam_heating/all_data.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/fixtures/m_adam_heating/all_data.json b/fixtures/m_adam_heating/all_data.json index f7fbaac2f..81d60bed9 100644 --- a/fixtures/m_adam_heating/all_data.json +++ b/fixtures/m_adam_heating/all_data.json @@ -81,7 +81,7 @@ "active_preset": "asleep", "available": true, "available_schedules": ["Weekschema", "Badkamer", "Test"], - "control_state": "heating", + "control_state": "preheating", "dev_class": "thermostat", "location": "f2bf9048bef64cc5b6d5110154e33c81", "mode": "heat", From 1745ebf316668cd416d1c8c0840f07799bf3d491 Mon Sep 17 00:00:00 2001 From: Bouwe Date: Sun, 5 Nov 2023 10:14:15 +0100 Subject: [PATCH 3/3] Update CHANGELOG --- CHANGELOG.md | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index 25b3e0ef0..d00bd2750 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,9 @@ # Changelog +## Ongoing + +- Update fixture to create a testcase for HVACAction.PREHEATING + ## v0.34.5 - Adam: return the control_state for each thermostat/location.