Improve test coverage mqtt discovery test (#114188)

This commit is contained in:
Jan Bouwhuis 2024-03-25 22:41:11 +01:00 committed by GitHub
parent 121182167f
commit 18174ad47d
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -1545,6 +1545,7 @@ async def test_mqtt_discovery_unsubscribe_once(
async def async_step_mqtt(self, discovery_info: MqttServiceInfo) -> FlowResult:
"""Test mqtt step."""
await asyncio.sleep(0.1)
return self.async_abort(reason="already_configured")
with mock_config_flow("comp", TestFlow):