mirror of
https://github.com/home-assistant/core.git
synced 2025-07-08 05:47:10 +00:00
Improve MQTT timeout print (#46398)
This commit is contained in:
parent
0d2f5cf7ed
commit
190a9f66cb
@ -929,7 +929,9 @@ class MQTT:
|
|||||||
try:
|
try:
|
||||||
await asyncio.wait_for(self._pending_operations[mid].wait(), TIMEOUT_ACK)
|
await asyncio.wait_for(self._pending_operations[mid].wait(), TIMEOUT_ACK)
|
||||||
except asyncio.TimeoutError:
|
except asyncio.TimeoutError:
|
||||||
_LOGGER.error("Timed out waiting for mid %s", mid)
|
_LOGGER.warning(
|
||||||
|
"No ACK from MQTT server in %s seconds (mid: %s)", TIMEOUT_ACK, mid
|
||||||
|
)
|
||||||
finally:
|
finally:
|
||||||
del self._pending_operations[mid]
|
del self._pending_operations[mid]
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user