mirror of
https://github.com/home-assistant/core.git
synced 2025-07-27 15:17:35 +00:00
Set Z-Wave platforms fixture in light tests (#144473)
This commit is contained in:
parent
3c4c3dc08e
commit
2fd678bb59
@ -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:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user