Remove legacy method from deCONZ fan and sensor tests (#121244)

This commit is contained in:
Robert Svensson 2024-07-05 01:17:15 +02:00 committed by GitHub
parent e47cbf3cf7
commit 62d9020261
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 0 additions and 22 deletions

View File

@ -15,19 +15,9 @@ from homeassistant.config_entries import ConfigEntry
from homeassistant.const import ATTR_ENTITY_ID, STATE_OFF, STATE_ON, STATE_UNAVAILABLE
from homeassistant.core import HomeAssistant
from .test_gateway import setup_deconz_integration
from tests.test_util.aiohttp import AiohttpClientMocker
async def test_no_fans(
hass: HomeAssistant, aioclient_mock: AiohttpClientMocker
) -> None:
"""Test that no fan entities are created."""
await setup_deconz_integration(hass, aioclient_mock)
assert len(hass.states.async_all()) == 0
@pytest.mark.parametrize(
"light_payload",
[

View File

@ -25,19 +25,7 @@ from homeassistant.core import HomeAssistant
from homeassistant.helpers import device_registry as dr, entity_registry as er
from homeassistant.util import dt as dt_util
from .test_gateway import setup_deconz_integration
from tests.common import async_fire_time_changed
from tests.test_util.aiohttp import AiohttpClientMocker
async def test_no_sensors(
hass: HomeAssistant, aioclient_mock: AiohttpClientMocker
) -> None:
"""Test that no sensors in deconz results in no sensor entities."""
await setup_deconz_integration(hass, aioclient_mock)
assert len(hass.states.async_all()) == 0
TEST_DATA = [
( # Air quality sensor