Correct typing on hass_storage fixure (#87986)

Co-authored-by: epenet <6771947+epenet@users.noreply.github.com>
This commit is contained in:
Jan Bouwhuis 2023-02-13 12:12:34 +01:00 committed by GitHub
parent dc8ceaf4bf
commit 950ee34514
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
4 changed files with 21 additions and 7 deletions

View file

@ -302,7 +302,7 @@ def bcrypt_cost() -> Generator[None, None, None]:
@pytest.fixture
def hass_storage():
def hass_storage() -> Generator[dict[str, Any], None, None]:
"""Fixture to mock storage."""
with mock_storage() as stored_data:
yield stored_data