Add type hints to integration tests (part 24) (#88307)

This commit is contained in:
epenet 2023-02-17 16:34:53 +01:00 committed by GitHub
parent f3e4783a5e
commit aa50096a31
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
49 changed files with 627 additions and 359 deletions

View file

@ -1,4 +1,6 @@
"""Test Websocket API messages module."""
import pytest
from homeassistant.components.websocket_api.messages import (
_cached_event_message as lru_event_cache,
cached_event_message,
@ -77,7 +79,7 @@ async def test_cached_event_message_with_different_idens(hass: HomeAssistant) ->
assert cache_info.currsize == 1
async def test_message_to_json(caplog):
async def test_message_to_json(caplog: pytest.LogCaptureFixture) -> None:
"""Test we can serialize websocket messages."""
json_str = message_to_json({"id": 1, "message": "xyz"})