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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user