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:
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user