Fix issue in mqtt fixture calling disconnect handler (#120246)

This commit is contained in:
Jan Bouwhuis 2024-06-23 17:37:08 +02:00 committed by GitHub
parent 2cc34fd7e7
commit f1fd52bc30
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 15 additions and 53 deletions

View file

@ -960,6 +960,7 @@ def mqtt_client_mock(hass: HomeAssistant) -> Generator[MqttMockPahoClient]:
mock_client.subscribe.side_effect = _subscribe
mock_client.unsubscribe.side_effect = _unsubscribe
mock_client.publish.side_effect = _async_fire_mqtt_message
mock_client.loop_read.return_value = 0
yield mock_client