mirror of
https://github.com/home-assistant/core.git
synced 2025-12-24 21:06:19 +00:00
Add return type to async tests without arguments (#87612)
This commit is contained in:
@@ -42,7 +42,7 @@ async def test_invalid_json(caplog):
|
||||
)
|
||||
|
||||
|
||||
async def test_nan_serialized_to_null():
|
||||
async def test_nan_serialized_to_null() -> None:
|
||||
"""Test nan serialized to null JSON."""
|
||||
response = HomeAssistantView.json(float("NaN"))
|
||||
assert json.loads(response.body.decode("utf-8")) is None
|
||||
|
||||
Reference in New Issue
Block a user