Improve type hints in person tests (#123871)

This commit is contained in:
epenet 2024-08-14 13:00:07 +02:00 committed by GitHub
parent 8117532cc7
commit f414f5d77a
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -18,7 +18,7 @@ DEVICE_TRACKER_2 = "device_tracker.test_tracker_2"
@pytest.fixture
def storage_collection(hass):
def storage_collection(hass: HomeAssistant) -> person.PersonStorageCollection:
"""Return an empty storage collection."""
id_manager = collection.IDManager()
return person.PersonStorageCollection(