Use call_at for events instead call_later (#93431)

Co-authored-by: Jan Bouwhuis <jbouwh@users.noreply.github.com>
This commit is contained in:
J. Nick Koston 2023-05-24 14:04:07 -05:00 committed by GitHub
parent 30d9d7d905
commit 5c6ed8f6d5
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 7 additions and 8 deletions

View file

@ -1,7 +1,7 @@
"""Tests for the Home Assistant auth module."""
from datetime import timedelta
from typing import Any
from unittest.mock import Mock, patch
from unittest.mock import patch
from freezegun import freeze_time
import jwt
@ -31,10 +31,8 @@ from tests.common import (
@pytest.fixture
def mock_hass(event_loop):
def mock_hass(hass: HomeAssistant) -> HomeAssistant:
"""Home Assistant mock with minimum amount of data set to make it work with auth."""
hass = Mock()
hass.config.skip_pip = True
return hass