1
0
mirror of https://github.com/home-assistant/core.git synced 2025-12-24 12:59:34 +00:00

Clean up deprecated connection class remainders (#75421)

This commit is contained in:
Franck Nijhof
2022-07-19 06:14:41 +02:00
committed by GitHub
parent d05160a402
commit e65018fb85
2 changed files with 1 additions and 27 deletions

View File

@@ -418,14 +418,3 @@ async def test_webhook_create_cloudhook_aborts_not_connected(hass, webhook_flow_
assert result["type"] == data_entry_flow.FlowResultType.ABORT
assert result["reason"] == "cloud_not_connected"
async def test_warning_deprecated_connection_class(hass, caplog):
"""Test that we log a warning when the connection_class is used."""
discovery_function = Mock()
with patch.dict(config_entries.HANDLERS):
config_entry_flow.register_discovery_flow(
"test", "Test", discovery_function, connection_class="local_polling"
)
assert "integration is setting a connection_class" in caplog.text