mirror of
https://github.com/home-assistant/core.git
synced 2025-12-24 21:06:19 +00:00
Use HTTP_NOT_FOUND constant (#33835)
This commit is contained in:
@@ -15,6 +15,7 @@ from homeassistant.components.smartthings.const import (
|
||||
CONF_REFRESH_TOKEN,
|
||||
DOMAIN,
|
||||
)
|
||||
from homeassistant.const import HTTP_NOT_FOUND
|
||||
from homeassistant.setup import async_setup_component
|
||||
|
||||
from tests.common import MockConfigEntry, mock_coro
|
||||
@@ -160,7 +161,7 @@ async def test_unknown_api_error(hass, smartthings_mock):
|
||||
|
||||
request_info = Mock(real_url="http://example.com")
|
||||
smartthings_mock.apps.side_effect = ClientResponseError(
|
||||
request_info=request_info, history=None, status=404
|
||||
request_info=request_info, history=None, status=HTTP_NOT_FOUND
|
||||
)
|
||||
|
||||
result = await flow.async_step_user({"access_token": str(uuid4())})
|
||||
|
||||
Reference in New Issue
Block a user