Merge pull request #634 from jmdietrich-gcx/fix_missing_await_for_update_rpa

Add missing await for update_rpa()
This commit is contained in:
Gilles Boccon-Gibod
2025-01-27 10:45:42 -05:00
committed by GitHub
+1 -1
View File
@@ -2509,7 +2509,7 @@ class Device(CompositeEventEmitter):
"""Update the RPA periodically"""
while self.le_rpa_timeout != 0:
await asyncio.sleep(self.le_rpa_timeout)
if not self.update_rpa():
if not await self.update_rpa():
logger.debug("periodic RPA update failed")
async def refresh_resolving_list(self) -> None: