Improve type hints in logbook tests (#123652)

This commit is contained in:
epenet 2024-08-12 13:29:38 +02:00 committed by GitHub
parent e8d7eb05ae
commit ecf22e4c4f
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 93 additions and 67 deletions

View file

@ -48,12 +48,6 @@ from tests.components.recorder.common import (
from tests.typing import RecorderInstanceGenerator, WebSocketGenerator
@pytest.fixture
async def set_utc(hass):
"""Set timezone to UTC."""
await hass.config.async_set_time_zone("UTC")
def listeners_without_writes(listeners: dict[str, int]) -> dict[str, int]:
"""Return listeners without final write listeners since we are not testing for these."""
return {