Patch Z-Wave platforms in button tests (#141001)

This commit is contained in:
Martin Hjelmare 2025-03-20 15:37:02 +01:00 committed by GitHub
parent 2a4ed9ace7
commit a835c85f59
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -5,11 +5,17 @@ import pytest
from homeassistant.components.button import DOMAIN as BUTTON_DOMAIN, SERVICE_PRESS
from homeassistant.components.zwave_js.const import DOMAIN, SERVICE_REFRESH_VALUE
from homeassistant.components.zwave_js.helpers import get_valueless_base_unique_id
from homeassistant.const import ATTR_ENTITY_ID
from homeassistant.const import ATTR_ENTITY_ID, Platform
from homeassistant.core import HomeAssistant
from homeassistant.helpers import entity_registry as er
@pytest.fixture
def platforms() -> list[str]:
"""Fixture to specify platforms to test."""
return [Platform.BUTTON]
async def test_ping_entity(
hass: HomeAssistant,
entity_registry: er.EntityRegistry,