Upgrade black to 20.8b1 (#39287)

This commit is contained in:
Franck Nijhof authored and GitHub committed 2020-08-27 13:56:20 +02:00
1 parent 0d7eec710c
commit 1c2ebdf307
574 files changed
+4389 -1725

No files matched your search

@@ -1108,7 +1108,8 @@ async def test_option_flow_import(hass, mock_panel):
assert schema["8"] == "Disabled"
result = await hass.config_entries.options.async_configure(
result["flow_id"], user_input={},
result["flow_id"],
user_input={},
)
assert result["type"] == "form"
assert result["step_id"] == "options_binary"
@@ -1129,7 +1130,8 @@ async def test_option_flow_import(hass, mock_panel):
assert schema["type"] == "ds18b20"
assert schema["name"] == "temper"
result = await hass.config_entries.options.async_configure(
result["flow_id"], user_input={"type": "dht"},
result["flow_id"],
user_input={"type": "dht"},
)
assert result["type"] == "form"
assert result["step_id"] == "options_switch"
+11 -4
View File
@@ -387,7 +387,8 @@ async def test_config_passed_to_config_entry(hass):
async def test_unload_entry(hass, mock_panel):
"""Test being able to unload an entry."""
await async_process_ha_core_config(
hass, {"internal_url": "http://example.local:8123"},
hass,
{"internal_url": "http://example.local:8123"},
)
entry = MockConfigEntry(
domain=konnected.DOMAIN, data={konnected.CONF_ID: "aabbccddeeff"}
@@ -570,7 +571,8 @@ async def test_api(hass, aiohttp_client, mock_panel):
async def test_state_updates_zone(hass, aiohttp_client, mock_panel):
"""Test callback view."""
await async_process_ha_core_config(
hass, {"internal_url": "http://example.local:8123"},
hass,
{"internal_url": "http://example.local:8123"},
)
device_config = config_flow.CONFIG_ENTRY_SCHEMA(
@@ -720,7 +722,8 @@ async def test_state_updates_zone(hass, aiohttp_client, mock_panel):
async def test_state_updates_pin(hass, aiohttp_client, mock_panel):
"""Test callback view."""
await async_process_ha_core_config(
hass, {"internal_url": "http://example.local:8123"},
hass,
{"internal_url": "http://example.local:8123"},
)
device_config = config_flow.CONFIG_ENTRY_SCHEMA(
@@ -777,7 +780,11 @@ async def test_state_updates_pin(hass, aiohttp_client, mock_panel):
entry.add_to_hass(hass)
# Add empty data field to ensure we process it correctly (possible if entry is ignored)
entry = MockConfigEntry(domain="konnected", title="Konnected Alarm Panel", data={},)
entry = MockConfigEntry(
domain="konnected",
title="Konnected Alarm Panel",
data={},
)
entry.add_to_hass(hass)
assert (