diff --git a/custom_components/mega/tools.py b/custom_components/mega/tools.py index aab64b7..5c4c63e 100644 --- a/custom_components/mega/tools.py +++ b/custom_components/mega/tools.py @@ -50,6 +50,10 @@ class PriorityLock(asyncio.Lock): finally: self.release() + @property + def _loop(self): + return asyncio.get_event_loop() + async def acquire(self, priority=0) -> bool: """Acquire a lock.