Patch Z-Wave platforms in custom event tests (#141268)

Patch Z-Wave platforms in custom events tests
This commit is contained in:
Martin Hjelmare 2025-03-24 12:19:29 +01:00 committed by GitHub
parent f4bc1a3545
commit 86ff540db9
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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: