Add missing hass type in tests/scripts (#124042)

This commit is contained in:
epenet
2024-08-16 13:21:39 +02:00
committed by GitHub
parent 99ab2566c2
commit f3e2d06922

View File

@ -1,5 +1,6 @@
"""Test the auth script to manage local users.""" """Test the auth script to manage local users."""
import argparse
from asyncio import AbstractEventLoop from asyncio import AbstractEventLoop
from collections.abc import Generator from collections.abc import Generator
import logging import logging
@ -148,7 +149,9 @@ def test_parsing_args(event_loop: AbstractEventLoop) -> None:
"""Test we parse args correctly.""" """Test we parse args correctly."""
called = False called = False
async def mock_func(hass, provider, args2): async def mock_func(
hass: HomeAssistant, provider: hass_auth.AuthProvider, args2: argparse.Namespace
) -> None:
"""Mock function to be called.""" """Mock function to be called."""
nonlocal called nonlocal called
called = True called = True