Add missing await for update_rpa()

This commit is contained in:
Jan-Marcel Dietrich
2025-01-27 15:14:52 +01:00
parent afee659ca6
commit 2198692961

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: