mirror of
https://github.com/home-assistant/core.git
synced 2025-12-24 21:06:19 +00:00
Add type hints to integration tests (m-p) (#87705)
This commit is contained in:
@@ -2,6 +2,7 @@
|
||||
from unittest.mock import Mock, patch
|
||||
|
||||
from homeassistant.components import onboarding
|
||||
from homeassistant.core import HomeAssistant
|
||||
from homeassistant.setup import async_setup_component
|
||||
|
||||
from . import mock_storage
|
||||
@@ -23,7 +24,7 @@ async def test_not_setup_views_if_onboarded(hass, hass_storage):
|
||||
assert onboarding.async_is_onboarded(hass)
|
||||
|
||||
|
||||
async def test_setup_views_if_not_onboarded(hass):
|
||||
async def test_setup_views_if_not_onboarded(hass: HomeAssistant) -> None:
|
||||
"""Test if onboarding is not done, we setup views."""
|
||||
with patch(
|
||||
"homeassistant.components.onboarding.views.async_setup",
|
||||
|
||||
Reference in New Issue
Block a user