mirror of
https://github.com/home-assistant/core.git
synced 2025-11-13 13:00:11 +00:00
Use http.HTTPStatus in components/s* (#58291)
This commit is contained in:
@@ -1,5 +1,6 @@
|
||||
"""Test system log component."""
|
||||
import asyncio
|
||||
from http import HTTPStatus
|
||||
import logging
|
||||
import queue
|
||||
from unittest.mock import MagicMock, patch
|
||||
@@ -40,7 +41,7 @@ async def get_error_log(hass, hass_client, expected_count):
|
||||
|
||||
client = await hass_client()
|
||||
resp = await client.get("/api/error/all")
|
||||
assert resp.status == 200
|
||||
assert resp.status == HTTPStatus.OK
|
||||
|
||||
data = await resp.json()
|
||||
|
||||
|
||||
Reference in New Issue
Block a user