mirror of
https://github.com/home-assistant/core.git
synced 2026-05-19 23:35:20 +02:00
Add type hints to integration tests (q-s) (#87706)
This commit is contained in:
@@ -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")
|
||||
|
||||
Reference in New Issue
Block a user