Add missing return type to some test functions (#119665)

This commit is contained in:
epenet 2024-06-14 08:26:45 +02:00 committed by GitHub
parent 26e21bb356
commit 38a6e666a7
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
15 changed files with 20 additions and 18 deletions

View file

@ -1873,7 +1873,7 @@ async def test_change_entity_id(
assert len(ent.remove_calls) == 2
def test_entity_description_as_dataclass(snapshot: SnapshotAssertion):
def test_entity_description_as_dataclass(snapshot: SnapshotAssertion) -> None:
"""Test EntityDescription behaves like a dataclass."""
obj = entity.EntityDescription("blah", device_class="test")
@ -1888,7 +1888,7 @@ def test_entity_description_as_dataclass(snapshot: SnapshotAssertion):
assert repr(obj) == snapshot
def test_extending_entity_description(snapshot: SnapshotAssertion):
def test_extending_entity_description(snapshot: SnapshotAssertion) -> None:
"""Test extending entity descriptions."""
@dataclasses.dataclass(frozen=True)