mirror of
https://github.com/home-assistant/core.git
synced 2025-07-28 23:57:06 +00:00
Add missing hass type in tests/scripts (#124042)
This commit is contained in:
parent
99ab2566c2
commit
f3e2d06922
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user