Add missing hass type hint in component tests (h) (#124209)

* Add missing hass type hint in component tests (h)

* Fix import
This commit is contained in:
epenet
2024-08-19 12:40:56 +02:00
committed by GitHub
parent f0af33bd2b
commit a24fdd1c2b
9 changed files with 38 additions and 9 deletions

View File

@@ -6,6 +6,8 @@ from unittest.mock import AsyncMock, MagicMock, patch
import pytest
from homeassistant.core import HomeAssistant
@pytest.fixture(autouse=True)
def mock_zha_config_flow_setup() -> Generator[None]:
@@ -122,7 +124,7 @@ def set_addon_options_fixture():
def install_addon_side_effect_fixture(addon_store_info, addon_info):
"""Return the install add-on side effect."""
async def install_addon(hass, slug):
async def install_addon(hass: HomeAssistant, slug: str) -> None:
"""Mock install add-on."""
addon_store_info.return_value = {
"installed": "1.0.0",