Skip to content

Commit

Permalink
Add missing hass type in tests/scripts (home-assistant#124042)
Browse files Browse the repository at this point in the history
  • Loading branch information
epenet authored Aug 16, 2024
1 parent 99ab256 commit f3e2d06
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion tests/scripts/test_auth.py
Original file line number Diff line number Diff line change
@@ -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
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit f3e2d06

Please sign in to comment.