Upgrade black to 20.8b1 (#39287)
This commit is contained in:
parent
0d7eec710c
commit
1c2ebdf307
574 changed files with 4389 additions and 1725 deletions
|
@ -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 (
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue