Fix lutron test AttributeError (#107323)
This commit is contained in:
parent
49284fb469
commit
133fd6ea5d
1 changed files with 2 additions and 1 deletions
|
@ -1,4 +1,5 @@
|
|||
"""Test the lutron config flow."""
|
||||
from email.message import Message
|
||||
from unittest.mock import AsyncMock, patch
|
||||
from urllib.error import HTTPError
|
||||
|
||||
|
@ -45,7 +46,7 @@ async def test_full_flow(hass: HomeAssistant, mock_setup_entry: AsyncMock) -> No
|
|||
@pytest.mark.parametrize(
|
||||
("raise_error", "text_error"),
|
||||
[
|
||||
(HTTPError("", 404, "", None, {}), "cannot_connect"),
|
||||
(HTTPError("", 404, "", Message(), None), "cannot_connect"),
|
||||
(Exception, "unknown"),
|
||||
],
|
||||
)
|
||||
|
|
Loading…
Add table
Reference in a new issue