mirror of
https://github.com/home-assistant/core.git
synced 2025-12-25 05:26:47 +00:00
Add type hints to integration tests (d-e) (#87699)
This commit is contained in:
@@ -1,5 +1,4 @@
|
||||
"""deCONZ select platform tests."""
|
||||
|
||||
from unittest.mock import patch
|
||||
|
||||
from pydeconz.models.sensor.presence import (
|
||||
@@ -14,6 +13,7 @@ from homeassistant.components.select import (
|
||||
SERVICE_SELECT_OPTION,
|
||||
)
|
||||
from homeassistant.const import ATTR_ENTITY_ID, STATE_UNAVAILABLE
|
||||
from homeassistant.core import HomeAssistant
|
||||
from homeassistant.helpers import device_registry as dr, entity_registry as er
|
||||
from homeassistant.helpers.entity import EntityCategory
|
||||
|
||||
@@ -23,8 +23,12 @@ from .test_gateway import (
|
||||
setup_deconz_integration,
|
||||
)
|
||||
|
||||
from tests.test_util.aiohttp import AiohttpClientMocker
|
||||
|
||||
async def test_no_select_entities(hass, aioclient_mock):
|
||||
|
||||
async def test_no_select_entities(
|
||||
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
|
||||
|
||||
Reference in New Issue
Block a user