mirror of
https://github.com/home-assistant/core.git
synced 2025-04-24 01:08:12 +00:00
Fix lutron test AttributeError (#107323)
This commit is contained in:
parent
49284fb469
commit
133fd6ea5d
@ -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…
x
Reference in New Issue
Block a user