ParadoxAlarmInterface / pai

Paradox Magellan, Spectra and EVO, with MQTT, Signal, Pushbullet, Pushover and others
https://gitter.im/paradox-alarm-interface
Eclipse Public License 2.0
351 stars 94 forks source link

RuntimeWarning: coroutine 'GSMTextInterface.data_received' : SMS is received but not processed #503

Open rockyhopper opened 5 hours ago

rockyhopper commented 5 hours ago

On 'dev' branch commit 1717c9258bc0f95e25fa284e5184c6a78b6a1dde (containing pull#501).

When SMS is received I got following log containing a RuntimeWarnings:

` 2024-09-22 19:11:51,646 - DEBUG - MainThread - PAI.paradox.interfaces.text.gsm - BUFFER: b'\r\n+CMT: "+336xxxxxxxx","","24/09/22,19:11:49+08"\r\npartition MAISON disarm\r\n\r\n\r\n'

2024-09-22 19:11:51,647 - DEBUG - MainThread - PAI.paradox.interfaces.text.gsm - M->I: b'+CMT: "+336xxxxxxxx","","24/09/22,19:11:49+08"'

2024-09-22 19:11:51,648 - DEBUG - MainThread - PAI.paradox.interfaces.text.gsm - M->I: b'partition MAISON disarm'

/home/xxxx/dvp/__Sandboxes/pai/paradox/interfaces/text/gsm.py:89: RuntimeWarning: coroutine 'GSMTextInterface.data_received' was never awaited self.recv_callback(message) # Callback

RuntimeWarning: Enable tracemalloc to get the object allocation traceback `

As a consequence content of the SMS is not truly processed (for example we are not reaching code checking phone number against GSM_CONTACTS.

yozik04 commented 3 hours ago

I've pushed a fix to dev. Please try.