Prevent 3rd party lib from opening sockets in freedompro tests (#55596)

This commit is contained in:
Erik Montnemery 2021-09-02 19:32:19 +02:00 committed by GitHub
parent 348bdca647
commit 2e5c1236f9
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 31 additions and 14 deletions

View file

@ -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,