mirror of
https://github.com/home-assistant/core.git
synced 2025-12-24 04:50:05 +00:00
Fix white_value causing zwave-js to set non-existing values (#49799)
This commit is contained in:
@@ -343,6 +343,12 @@ def vision_security_zl7432_state_fixture():
|
||||
return json.loads(load_fixture("zwave_js/vision_security_zl7432_state.json"))
|
||||
|
||||
|
||||
@pytest.fixture(name="zen_31_state", scope="session")
|
||||
def zem_31_state_fixture():
|
||||
"""Load the zen_31 node state fixture data."""
|
||||
return json.loads(load_fixture("zwave_js/zen_31_state.json"))
|
||||
|
||||
|
||||
@pytest.fixture(name="client")
|
||||
def mock_client_fixture(controller_state, version_state):
|
||||
"""Mock a client."""
|
||||
@@ -651,3 +657,11 @@ def vision_security_zl7432_fixture(client, vision_security_zl7432_state):
|
||||
node = Node(client, copy.deepcopy(vision_security_zl7432_state))
|
||||
client.driver.controller.nodes[node.node_id] = node
|
||||
return node
|
||||
|
||||
|
||||
@pytest.fixture(name="zen_31")
|
||||
def zen_31_fixture(client, zen_31_state):
|
||||
"""Mock a bulb 6 multi-color node."""
|
||||
node = Node(client, copy.deepcopy(zen_31_state))
|
||||
client.driver.controller.nodes[node.node_id] = node
|
||||
return node
|
||||
|
||||
Reference in New Issue
Block a user