Patch Z-Wave platforms in binary sensor tests (#140992)
parent
c9b27cf26e
commit
5f84fc3ee5
|
@ -1,5 +1,6 @@
|
|||
"""Test the Z-Wave JS binary sensor platform."""
|
||||
|
||||
import pytest
|
||||
from zwave_js_server.event import Event
|
||||
from zwave_js_server.model.node import Node
|
||||
|
||||
|
@ -10,6 +11,7 @@ from homeassistant.const import (
|
|||
STATE_ON,
|
||||
STATE_UNKNOWN,
|
||||
EntityCategory,
|
||||
Platform,
|
||||
)
|
||||
from homeassistant.core import HomeAssistant
|
||||
from homeassistant.helpers import entity_registry as er
|
||||
|
@ -26,6 +28,12 @@ from .common import (
|
|||
from tests.common import MockConfigEntry
|
||||
|
||||
|
||||
@pytest.fixture
|
||||
def platforms() -> list[str]:
|
||||
"""Fixture to specify platforms to test."""
|
||||
return [Platform.BINARY_SENSOR]
|
||||
|
||||
|
||||
async def test_low_battery_sensor(
|
||||
hass: HomeAssistant, entity_registry: er.EntityRegistry, multisensor_6, integration
|
||||
) -> None:
|
||||
|
|
Loading…
Reference in New Issue