Use http.HTTPStatus in components/s* (#58291)
This commit is contained in:
parent
05671557f0
commit
50e0c58310
29 changed files with 180 additions and 158 deletions
|
@ -58,7 +58,7 @@ async def test_unrecoverable_api_errors_create_new_flow(
|
|||
config_entry.add_to_hass(hass)
|
||||
request_info = Mock(real_url="http://example.com")
|
||||
smartthings_mock.app.side_effect = ClientResponseError(
|
||||
request_info=request_info, history=None, status=401
|
||||
request_info=request_info, history=None, status=HTTPStatus.UNAUTHORIZED
|
||||
)
|
||||
|
||||
# Assert setup returns false
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue