mirror of
https://github.com/home-assistant/core.git
synced 2025-12-24 12:59:34 +00:00
Upgrade black to 20.8b1 (#39287)
This commit is contained in:
@@ -20,9 +20,11 @@ from tests.common import MockConfigEntry
|
||||
def mock_setup():
|
||||
"""Prevent setup."""
|
||||
with patch(
|
||||
"homeassistant.components.openuv.async_setup", return_value=True,
|
||||
"homeassistant.components.openuv.async_setup",
|
||||
return_value=True,
|
||||
), patch(
|
||||
"homeassistant.components.openuv.async_setup_entry", return_value=True,
|
||||
"homeassistant.components.openuv.async_setup_entry",
|
||||
return_value=True,
|
||||
):
|
||||
yield
|
||||
|
||||
@@ -58,7 +60,8 @@ async def test_invalid_api_key(hass):
|
||||
}
|
||||
|
||||
with patch(
|
||||
"pyopenuv.client.Client.uv_index", side_effect=InvalidApiKeyError,
|
||||
"pyopenuv.client.Client.uv_index",
|
||||
side_effect=InvalidApiKeyError,
|
||||
):
|
||||
result = await hass.config_entries.flow.async_init(
|
||||
DOMAIN, context={"source": SOURCE_USER}, data=conf
|
||||
|
||||
Reference in New Issue
Block a user