mirror of
https://github.com/home-assistant/core.git
synced 2025-12-24 21:06:19 +00:00
Add support for climate setpoint thermostats to zwave_js (#45890)
This commit is contained in:
@@ -128,6 +128,18 @@ def climate_radio_thermostat_ct100_plus_different_endpoints_state_fixture():
|
||||
)
|
||||
|
||||
|
||||
@pytest.fixture(name="climate_danfoss_lc_13_state", scope="session")
|
||||
def climate_danfoss_lc_13_state_fixture():
|
||||
"""Load the climate Danfoss (LC-13) electronic radiator thermostat node state fixture data."""
|
||||
return json.loads(load_fixture("zwave_js/climate_danfoss_lc_13_state.json"))
|
||||
|
||||
|
||||
@pytest.fixture(name="climate_heatit_z_trm3_state", scope="session")
|
||||
def climate_heatit_z_trm3_state_fixture():
|
||||
"""Load the climate HEATIT Z-TRM3 thermostat node state fixture data."""
|
||||
return json.loads(load_fixture("zwave_js/climate_heatit_z_trm3_state.json"))
|
||||
|
||||
|
||||
@pytest.fixture(name="nortek_thermostat_state", scope="session")
|
||||
def nortek_thermostat_state_fixture():
|
||||
"""Load the nortek thermostat node state fixture data."""
|
||||
@@ -254,6 +266,22 @@ def climate_radio_thermostat_ct100_plus_different_endpoints_fixture(
|
||||
return node
|
||||
|
||||
|
||||
@pytest.fixture(name="climate_danfoss_lc_13")
|
||||
def climate_danfoss_lc_13_fixture(client, climate_danfoss_lc_13_state):
|
||||
"""Mock a climate radio danfoss LC-13 node."""
|
||||
node = Node(client, climate_danfoss_lc_13_state)
|
||||
client.driver.controller.nodes[node.node_id] = node
|
||||
return node
|
||||
|
||||
|
||||
@pytest.fixture(name="climate_heatit_z_trm3")
|
||||
def climate_heatit_z_trm3_fixture(client, climate_heatit_z_trm3_state):
|
||||
"""Mock a climate radio HEATIT Z-TRM3 node."""
|
||||
node = Node(client, climate_heatit_z_trm3_state)
|
||||
client.driver.controller.nodes[node.node_id] = node
|
||||
return node
|
||||
|
||||
|
||||
@pytest.fixture(name="nortek_thermostat")
|
||||
def nortek_thermostat_fixture(client, nortek_thermostat_state):
|
||||
"""Mock a nortek thermostat node."""
|
||||
|
||||
Reference in New Issue
Block a user