Cleanup of unused connection_class logic (#49865)

Co-authored-by: Joakim Sørensen <joasoe@gmail.com>
This commit is contained in:
Franck Nijhof 2021-04-29 23:12:58 +02:00 committed by GitHub
parent db886ef03a
commit c68b259bd3
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
53 changed files with 50 additions and 162 deletions

View file

@ -31,7 +31,6 @@ async def test_setup_entry_without_mqtt(hass):
entry = MockConfigEntry(
domain=DOMAIN,
title="OpenZWave",
connection_class=config_entries.CONN_CLASS_LOCAL_PUSH,
)
entry.add_to_hass(hass)
@ -64,7 +63,6 @@ async def test_unload_entry(hass, generic_data, switch_msg, caplog):
entry = MockConfigEntry(
domain=DOMAIN,
title="Z-Wave",
connection_class=config_entries.CONN_CLASS_LOCAL_PUSH,
)
entry.add_to_hass(hass)
assert entry.state == config_entries.ENTRY_STATE_NOT_LOADED
@ -112,7 +110,6 @@ async def test_remove_entry(hass, stop_addon, uninstall_addon, caplog):
entry = MockConfigEntry(
domain=DOMAIN,
title="Z-Wave",
connection_class=config_entries.CONN_CLASS_LOCAL_PUSH,
data={"integration_created_addon": False},
)
entry.add_to_hass(hass)
@ -128,7 +125,6 @@ async def test_remove_entry(hass, stop_addon, uninstall_addon, caplog):
entry = MockConfigEntry(
domain=DOMAIN,
title="Z-Wave",
connection_class=config_entries.CONN_CLASS_LOCAL_PUSH,
data={"integration_created_addon": True},
)
entry.add_to_hass(hass)
@ -178,7 +174,6 @@ async def test_setup_entry_with_addon(hass, get_addon_discovery_info):
entry = MockConfigEntry(
domain=DOMAIN,
title="OpenZWave",
connection_class=config_entries.CONN_CLASS_LOCAL_PUSH,
data={"use_addon": True},
)
entry.add_to_hass(hass)
@ -205,7 +200,6 @@ async def test_setup_entry_without_addon_info(hass, get_addon_discovery_info):
entry = MockConfigEntry(
domain=DOMAIN,
title="OpenZWave",
connection_class=config_entries.CONN_CLASS_LOCAL_PUSH,
data={"use_addon": True},
)
entry.add_to_hass(hass)
@ -226,7 +220,6 @@ async def test_unload_entry_with_addon(
entry = MockConfigEntry(
domain=DOMAIN,
title="OpenZWave",
connection_class=config_entries.CONN_CLASS_LOCAL_PUSH,
data={"use_addon": True},
)
entry.add_to_hass(hass)