Add type hints to integration tests (part 11) (#87996)

This commit is contained in:
epenet 2023-02-13 14:22:49 +01:00 committed by GitHub
parent 8f2a764a43
commit 1e352b60df
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
48 changed files with 610 additions and 307 deletions

View file

@ -1,4 +1,5 @@
"""Test the cloud component."""
from typing import Any
from unittest.mock import patch
import pytest
@ -105,7 +106,9 @@ async def test_startup_shutdown_events(hass: HomeAssistant, mock_cloud_fixture)
assert mock_stop.called
async def test_setup_existing_cloud_user(hass: HomeAssistant, hass_storage) -> None:
async def test_setup_existing_cloud_user(
hass: HomeAssistant, hass_storage: dict[str, Any]
) -> None:
"""Test setup with API push default data."""
user = await hass.auth.async_create_system_user("Cloud test")
hass_storage[STORAGE_KEY] = {"version": 1, "data": {"cloud_user": user.id}}