receiver: introduce small delay in getting pairing information to let receiver settle after pairing

This commit is contained in:
Peter F. Patel-Schneider 2024-04-12 08:26:56 -04:00
parent 1eb1d4b198
commit 86bab897d1
1 changed files with 2 additions and 0 deletions

View File

@ -17,6 +17,7 @@
import errno as _errno import errno as _errno
import logging import logging
import time
from dataclasses import dataclass from dataclasses import dataclass
from typing import Optional from typing import Optional
@ -209,6 +210,7 @@ class Receiver:
assert notification is None or notification.sub_id == 0x41 assert notification is None or notification.sub_id == 0x41
try: try:
time.sleep(0.05) # let receiver settle
info = self.device_pairing_information(number) info = self.device_pairing_information(number)
if notification is not None: if notification is not None:
online, _e, nwpid, nkind = self.notification_information(number, notification) online, _e, nwpid, nkind = self.notification_information(number, notification)