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
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -1,5 +1,6 @@
"""Test the auth script to manage local users."""
import argparse
from asyncio import AbstractEventLoop
from collections.abc import Generator
import logging
@ -148,7 +149,9 @@ def test_parsing_args(event_loop: AbstractEventLoop) -> None:
"""Test we parse args correctly."""
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."""
nonlocal called
called = True