Skip to content

Commit 86ff540

Browse files
Patch Z-Wave platforms in custom event tests (#141268)
Patch Z-Wave platforms in custom events tests
1 parent f4bc1a3 commit 86ff540

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

tests/components/zwave_js/test_events.py

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,11 +6,18 @@
66
from zwave_js_server.const import CommandClass
77
from zwave_js_server.event import Event
88

9+
from homeassistant.const import Platform
910
from homeassistant.core import HomeAssistant
1011

1112
from tests.common import async_capture_events
1213

1314

15+
@pytest.fixture
16+
def platforms() -> list[str]:
17+
"""Fixture to specify platforms to test."""
18+
return []
19+
20+
1421
async def test_scenes(
1522
hass: HomeAssistant, hank_binary_switch, integration, client
1623
) -> None:
@@ -244,6 +251,7 @@ async def test_notifications(
244251
assert events[2].data["command_class_name"] == "Multilevel Switch"
245252

246253

254+
@pytest.mark.parametrize("platforms", [[Platform.SWITCH]])
247255
async def test_value_updated(
248256
hass: HomeAssistant, vision_security_zl7432, integration, client
249257
) -> None:

0 commit comments

Comments
 (0)