From 19e56c3fed2345e2f894e208ab55c7818a3cb8e2 Mon Sep 17 00:00:00 2001 From: Scott Phillips Date: Tue, 8 Oct 2024 18:09:13 +1100 Subject: [PATCH] Update echonetapiclient.py Probable fix for issue #75 --- pychonet/echonetapiclient.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pychonet/echonetapiclient.py b/pychonet/echonetapiclient.py index 56ba2ad..1fcf419 100644 --- a/pychonet/echonetapiclient.py +++ b/pychonet/echonetapiclient.py @@ -312,7 +312,7 @@ async def echonetMessage(self, host, deojgc, deojcc, deojci, esv, opc): # Wait up to 20(0.1*200) seconds depending on the Echonet specifications. await asyncio.sleep(0.1) # if tx_tid is not in message list then the message listener has received the message - if self._message_list.get(tx_tid) is None: + if not self._message_list.get(tx_tid): # Check OPC count in results if not is_discover and tx_tid in self._opc_counts: res_opc_count = self._opc_counts[tx_tid]