mirror of
https://github.com/home-assistant/core.git
synced 2025-07-29 18:28:14 +02:00
Fix publish cancellation handling in MQTT (#120826)
This commit is contained in:
@ -1141,8 +1141,8 @@ class MQTT:
|
||||
# see https://github.com/eclipse/paho.mqtt.python/issues/687
|
||||
# properties and reason codes are not used in Home Assistant
|
||||
future = self._async_get_mid_future(mid)
|
||||
if future.done() and future.exception():
|
||||
# Timed out
|
||||
if future.done() and (future.cancelled() or future.exception()):
|
||||
# Timed out or cancelled
|
||||
return
|
||||
future.set_result(None)
|
||||
|
||||
|
Reference in New Issue
Block a user