mirror of
https://github.com/home-assistant/core.git
synced 2025-12-24 04:50:05 +00:00
Upgrade black to 20.8b1 (#39287)
This commit is contained in:
@@ -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 (
|
||||
|
||||
Reference in New Issue
Block a user