Use http.HTTPStatus in components/s* (#58291)

This commit is contained in:
Ville Skyttä 2021-10-23 21:49:04 +03:00 committed by GitHub
parent 05671557f0
commit 50e0c58310
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
29 changed files with 180 additions and 158 deletions

View file

@ -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()