mirror of
https://github.com/home-assistant/core.git
synced 2025-07-16 09:47:13 +00:00
Patch Z-Wave platforms in custom event tests (#141268)
Patch Z-Wave platforms in custom events tests
This commit is contained in:
parent
f4bc1a3545
commit
86ff540db9
@ -6,11 +6,18 @@ import pytest
|
||||
from zwave_js_server.const import CommandClass
|
||||
from zwave_js_server.event import Event
|
||||
|
||||
from homeassistant.const import Platform
|
||||
from homeassistant.core import HomeAssistant
|
||||
|
||||
from tests.common import async_capture_events
|
||||
|
||||
|
||||
@pytest.fixture
|
||||
def platforms() -> list[str]:
|
||||
"""Fixture to specify platforms to test."""
|
||||
return []
|
||||
|
||||
|
||||
async def test_scenes(
|
||||
hass: HomeAssistant, hank_binary_switch, integration, client
|
||||
) -> None:
|
||||
@ -244,6 +251,7 @@ async def test_notifications(
|
||||
assert events[2].data["command_class_name"] == "Multilevel Switch"
|
||||
|
||||
|
||||
@pytest.mark.parametrize("platforms", [[Platform.SWITCH]])
|
||||
async def test_value_updated(
|
||||
hass: HomeAssistant, vision_security_zl7432, integration, client
|
||||
) -> None:
|
||||
|
Loading…
x
Reference in New Issue
Block a user