Skip to content

Commit

Permalink
Merge pull request #444 from plugwise/preheating-fixture
Browse files Browse the repository at this point in the history
Follow changes in latest pw-beta release
  • Loading branch information
bouwew authored Nov 5, 2023
2 parents 2a03ddd + 1745ebf commit 8d4f4a1
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 4 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -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.
Expand Down
2 changes: 1 addition & 1 deletion fixtures/m_adam_heating/all_data.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down
6 changes: 3 additions & 3 deletions scripts/manual_fixtures.py
Original file line number Diff line number Diff line change
Expand Up @@ -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"][
Expand All @@ -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
Expand Down

0 comments on commit 8d4f4a1

Please sign in to comment.