mirror of
https://github.com/home-assistant/core.git
synced 2025-07-10 06:47:09 +00:00
Patch Z-Wave platforms in binary sensor tests (#140992)
This commit is contained in:
parent
c9b27cf26e
commit
5f84fc3ee5
@ -1,5 +1,6 @@
|
|||||||
"""Test the Z-Wave JS binary sensor platform."""
|
"""Test the Z-Wave JS binary sensor platform."""
|
||||||
|
|
||||||
|
import pytest
|
||||||
from zwave_js_server.event import Event
|
from zwave_js_server.event import Event
|
||||||
from zwave_js_server.model.node import Node
|
from zwave_js_server.model.node import Node
|
||||||
|
|
||||||
@ -10,6 +11,7 @@ from homeassistant.const import (
|
|||||||
STATE_ON,
|
STATE_ON,
|
||||||
STATE_UNKNOWN,
|
STATE_UNKNOWN,
|
||||||
EntityCategory,
|
EntityCategory,
|
||||||
|
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
|
||||||
@ -26,6 +28,12 @@ from .common import (
|
|||||||
from tests.common import MockConfigEntry
|
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(
|
async def test_low_battery_sensor(
|
||||||
hass: HomeAssistant, entity_registry: er.EntityRegistry, multisensor_6, integration
|
hass: HomeAssistant, entity_registry: er.EntityRegistry, multisensor_6, integration
|
||||||
) -> None:
|
) -> None:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user