mirror of
https://github.com/home-assistant/core.git
synced 2025-12-24 21:06:19 +00:00
Use http.HTTPStatus in components/f* (#58244)
This commit is contained in:
@@ -1,4 +1,5 @@
|
||||
"""Test the flo config flow."""
|
||||
from http import HTTPStatus
|
||||
import json
|
||||
import time
|
||||
from unittest.mock import patch
|
||||
@@ -51,7 +52,7 @@ async def test_form_cannot_connect(hass, aioclient_mock):
|
||||
}
|
||||
),
|
||||
headers={"Content-Type": CONTENT_TYPE_JSON},
|
||||
status=400,
|
||||
status=HTTPStatus.BAD_REQUEST,
|
||||
)
|
||||
result = await hass.config_entries.flow.async_init(
|
||||
DOMAIN, context={"source": config_entries.SOURCE_USER}
|
||||
|
||||
Reference in New Issue
Block a user