Fix Ruckus Unleashed SSH connection failures (#75032)

This commit is contained in:
Gabe Cook
2022-07-13 14:13:52 -07:00
committed by Paulus Schoutsen
parent bdc4171e37
commit 620d2ed8fd
7 changed files with 16 additions and 19 deletions
@@ -31,7 +31,7 @@ async def test_setup_entry_login_error(hass):
"""Test entry setup failed due to login error."""
entry = mock_config_entry()
with patch(
"homeassistant.components.ruckus_unleashed.Ruckus",
"homeassistant.components.ruckus_unleashed.Ruckus.connect",
side_effect=AuthenticationError,
):
entry.add_to_hass(hass)
@@ -45,7 +45,7 @@ async def test_setup_entry_connection_error(hass):
"""Test entry setup failed due to connection error."""
entry = mock_config_entry()
with patch(
"homeassistant.components.ruckus_unleashed.Ruckus",
"homeassistant.components.ruckus_unleashed.Ruckus.connect",
side_effect=ConnectionError,
):
entry.add_to_hass(hass)