diff --git a/tests/components/deconz/test_gateway.py b/tests/components/deconz/test_gateway.py index 5893b529f6ba2c..80ac83cea924fe 100644 --- a/tests/components/deconz/test_gateway.py +++ b/tests/components/deconz/test_gateway.py @@ -66,7 +66,7 @@ async def test_gateway_retry(): with patch.object(gateway, 'get_gateway', side_effect=errors.CannotConnect), \ - pytest.raises(ConfigEntryNotReady): + pytest.raises(ConfigEntryNotReady): await deconz_gateway.async_setup() @@ -191,7 +191,7 @@ async def test_get_gateway_fails_unauthorized(hass): """Failed call.""" with patch('pydeconz.DeconzSession.async_load_parameters', side_effect=pydeconz.errors.Unauthorized), \ - pytest.raises(errors.AuthenticationRequired): + pytest.raises(errors.AuthenticationRequired): assert await gateway.get_gateway( hass, ENTRY_CONFIG, Mock(), Mock()) is False @@ -200,7 +200,7 @@ async def test_get_gateway_fails_cannot_connect(hass): """Failed call.""" with patch('pydeconz.DeconzSession.async_load_parameters', side_effect=pydeconz.errors.RequestError), \ - pytest.raises(errors.CannotConnect): + pytest.raises(errors.CannotConnect): assert await gateway.get_gateway( hass, ENTRY_CONFIG, Mock(), Mock()) is False