mirror of
https://github.com/home-assistant/core.git
synced 2025-11-17 06:50:12 +00:00
Add zwave-js fan platform (#45439)
* Add zwave-js fan platform * Update remaining tests * Missing awaits, tests fixed * Fix typing Co-authored-by: Martin Hjelmare <marhje52@gmail.com>
This commit is contained in:
@@ -88,6 +88,12 @@ def window_cover_state_fixture():
|
||||
return json.loads(load_fixture("zwave_js/chain_actuator_zws12_state.json"))
|
||||
|
||||
|
||||
@pytest.fixture(name="in_wall_smart_fan_control_state", scope="session")
|
||||
def in_wall_smart_fan_control_state_fixture():
|
||||
"""Load the fan node state fixture data."""
|
||||
return json.loads(load_fixture("zwave_js/in_wall_smart_fan_control_state.json"))
|
||||
|
||||
|
||||
@pytest.fixture(name="client")
|
||||
def mock_client_fixture(controller_state, version_state):
|
||||
"""Mock a client."""
|
||||
@@ -204,3 +210,11 @@ def window_cover_fixture(client, chain_actuator_zws12_state):
|
||||
node = Node(client, chain_actuator_zws12_state)
|
||||
client.driver.controller.nodes[node.node_id] = node
|
||||
return node
|
||||
|
||||
|
||||
@pytest.fixture(name="in_wall_smart_fan_control")
|
||||
def in_wall_smart_fan_control_fixture(client, in_wall_smart_fan_control_state):
|
||||
"""Mock a fan node."""
|
||||
node = Node(client, in_wall_smart_fan_control_state)
|
||||
client.driver.controller.nodes[node.node_id] = node
|
||||
return node
|
||||
|
||||
Reference in New Issue
Block a user