1
0
mirror of https://github.com/home-assistant/core.git synced 2025-12-24 21:06:19 +00:00

Improve type hints in core helper tests (#120096)

This commit is contained in:
epenet
2024-06-21 15:43:27 +02:00
committed by GitHub
parent 4aecd23f1d
commit 648ef94888
8 changed files with 71 additions and 59 deletions

View File

@@ -484,12 +484,12 @@ async def test_restore_entity_end_to_end(
class MockRestoreEntity(RestoreEntity):
"""Mock restore entity."""
def __init__(self):
def __init__(self) -> None:
"""Initialize the mock entity."""
self._state: str | None = None
@property
def state(self):
def state(self) -> str | None:
"""Return the state."""
return self._state