mirror of
https://github.com/home-assistant/core.git
synced 2025-07-15 17:27:10 +00:00
Patch Z-Wave platforms in cover tests (#141205)
This commit is contained in:
parent
c7d1e5a28c
commit
588d6ad4cf
@ -2,6 +2,7 @@
|
|||||||
|
|
||||||
import logging
|
import logging
|
||||||
|
|
||||||
|
import pytest
|
||||||
from zwave_js_server.const import (
|
from zwave_js_server.const import (
|
||||||
CURRENT_STATE_PROPERTY,
|
CURRENT_STATE_PROPERTY,
|
||||||
CURRENT_VALUE_PROPERTY,
|
CURRENT_VALUE_PROPERTY,
|
||||||
@ -35,6 +36,7 @@ from homeassistant.const import (
|
|||||||
ATTR_ENTITY_ID,
|
ATTR_ENTITY_ID,
|
||||||
ATTR_SUPPORTED_FEATURES,
|
ATTR_SUPPORTED_FEATURES,
|
||||||
STATE_UNKNOWN,
|
STATE_UNKNOWN,
|
||||||
|
Platform,
|
||||||
)
|
)
|
||||||
from homeassistant.core import HomeAssistant
|
from homeassistant.core import HomeAssistant
|
||||||
|
|
||||||
@ -50,6 +52,12 @@ FIBARO_FGR_223_SHUTTER_COVER_ENTITY = "cover.fgr_223_test_cover"
|
|||||||
LOGGER.setLevel(logging.DEBUG)
|
LOGGER.setLevel(logging.DEBUG)
|
||||||
|
|
||||||
|
|
||||||
|
@pytest.fixture
|
||||||
|
def platforms() -> list[str]:
|
||||||
|
"""Fixture to specify platforms to test."""
|
||||||
|
return [Platform.COVER]
|
||||||
|
|
||||||
|
|
||||||
async def test_window_cover(
|
async def test_window_cover(
|
||||||
hass: HomeAssistant, client, chain_actuator_zws12, integration
|
hass: HomeAssistant, client, chain_actuator_zws12, integration
|
||||||
) -> None:
|
) -> None:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user