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

Simplify mqtt connection state dispatcher (#118184)

This commit is contained in:
J. Nick Koston
2024-05-26 10:21:21 -10:00
committed by GitHub
parent b7f1f805fa
commit 226d010ab2
6 changed files with 17 additions and 42 deletions

View File

@@ -1023,7 +1023,7 @@ async def _mqtt_mock_entry(
mock_mqtt_instance.connected = True
mqtt_client_mock.on_connect(mqtt_client_mock, None, 0, 0, 0)
async_dispatcher_send(hass, mqtt.MQTT_CONNECTED)
async_dispatcher_send(hass, mqtt.MQTT_CONNECTION_STATE, True)
await hass.async_block_till_done()
return mock_mqtt_instance