Prevent 3rd party lib from opening sockets in freedompro tests (#55596)
This commit is contained in:
parent
348bdca647
commit
2e5c1236f9
3 changed files with 31 additions and 14 deletions
|
@ -26,7 +26,7 @@ async def test_show_form(hass):
|
|||
async def test_invalid_auth(hass):
|
||||
"""Test that errors are shown when API key is invalid."""
|
||||
with patch(
|
||||
"homeassistant.components.freedompro.config_flow.list",
|
||||
"homeassistant.components.freedompro.config_flow.get_list",
|
||||
return_value={
|
||||
"state": False,
|
||||
"code": -201,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue