mirror of
https://github.com/home-assistant/core.git
synced 2025-08-09 15:45:08 +02:00
Improve MQTT timeout print (#46398)
This commit is contained in:
@@ -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]
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user