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:
parent
22a6e55e70
commit
68e7ecb74b
6 changed files with 672 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue