Set Z-Wave platforms fixture in light tests (#144473)

This commit is contained in:
Martin Hjelmare 2025-05-08 16:45:26 +02:00 committed by GitHub
parent 3c4c3dc08e
commit 2fd678bb59
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -2,6 +2,7 @@
from copy import deepcopy from copy import deepcopy
import pytest
from zwave_js_server.event import Event from zwave_js_server.event import Event
from homeassistant.components.light import ( from homeassistant.components.light import (
@ -26,6 +27,7 @@ from homeassistant.const import (
STATE_OFF, STATE_OFF,
STATE_ON, STATE_ON,
STATE_UNKNOWN, STATE_UNKNOWN,
Platform,
) )
from homeassistant.core import HomeAssistant from homeassistant.core import HomeAssistant
from homeassistant.helpers import entity_registry as er from homeassistant.helpers import entity_registry as er
@ -42,6 +44,12 @@ ZDB5100_ENTITY = "light.matrix_office"
HSM200_V1_ENTITY = "light.hsm200" HSM200_V1_ENTITY = "light.hsm200"
@pytest.fixture
def platforms() -> list[str]:
"""Fixture to specify platforms to test."""
return [Platform.LIGHT]
async def test_light( async def test_light(
hass: HomeAssistant, client, bulb_6_multi_color, integration hass: HomeAssistant, client, bulb_6_multi_color, integration
) -> None: ) -> None: