1
0
mirror of https://github.com/home-assistant/core.git synced 2025-12-24 21:06:19 +00:00

Open and close tilt for Fibaro devices in zwave_js (#58435)

Co-authored-by: Martin Hjelmare <marhje52@gmail.com>
This commit is contained in:
Paul Frank
2021-10-28 22:30:34 +02:00
committed by GitHub
parent 2b7fe06b16
commit 3705f2f7f1
6 changed files with 1363 additions and 6 deletions

View File

@@ -356,6 +356,12 @@ def aeotec_nano_shutter_state_fixture():
return json.loads(load_fixture("zwave_js/cover_aeotec_nano_shutter_state.json"))
@pytest.fixture(name="fibaro_fgr222_shutter_state", scope="session")
def fibaro_fgr222_shutter_state_fixture():
"""Load the Fibaro FGR222 node state fixture data."""
return json.loads(load_fixture("zwave_js/cover_fibaro_fgr222_state.json"))
@pytest.fixture(name="aeon_smart_switch_6_state", scope="session")
def aeon_smart_switch_6_state_fixture():
"""Load the AEON Labs (ZW096) Smart Switch 6 node state fixture data."""
@@ -743,6 +749,14 @@ def aeotec_nano_shutter_cover_fixture(client, aeotec_nano_shutter_state):
return node
@pytest.fixture(name="fibaro_fgr222_shutter")
def fibaro_fgr222_shutter_cover_fixture(client, fibaro_fgr222_shutter_state):
"""Mock a Fibaro FGR222 Shutter node."""
node = Node(client, copy.deepcopy(fibaro_fgr222_shutter_state))
client.driver.controller.nodes[node.node_id] = node
return node
@pytest.fixture(name="aeon_smart_switch_6")
def aeon_smart_switch_6_fixture(client, aeon_smart_switch_6_state):
"""Mock an AEON Labs (ZW096) Smart Switch 6 node."""