Add type hints to integration tests (q-s) (#87706)

This commit is contained in:
epenet
2023-02-08 17:12:54 +01:00
committed by GitHub
parent 3abf7ea18a
commit ba85fdcd61
97 changed files with 687 additions and 481 deletions
+2 -2
View File
@@ -12,7 +12,7 @@ from homeassistant.const import (
STATE_UNAVAILABLE,
STATE_UNKNOWN,
)
from homeassistant.core import State
from homeassistant.core import HomeAssistant, State
from homeassistant.setup import async_setup_component
from homeassistant.util import dt as dt_util
from homeassistant.util.yaml import loader as yaml_loader
@@ -216,7 +216,7 @@ async def activate(hass, entity_id=ENTITY_MATCH_ALL):
await hass.services.async_call(scene.DOMAIN, SERVICE_TURN_ON, data, blocking=True)
async def test_services_registered(hass):
async def test_services_registered(hass: HomeAssistant) -> None:
"""Test we register services with empty config."""
assert await async_setup_component(hass, "scene", {})
assert hass.services.has_service("scene", "reload")