mirror of
https://github.com/andvikt/mega_hacs.git
synced 2025-12-12 01:24:29 +05:00
Compare commits
3 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
e44aef35fb | ||
|
|
a860ba9822 | ||
|
|
2463b270e5 |
@@ -1,5 +1,5 @@
|
||||
[bumpversion]
|
||||
current_version = 1.1.2b0
|
||||
current_version = 1.1.3
|
||||
parse = (?P<major>\d+)(\.(?P<minor>\d+))(\.(?P<patch>\d+))(?P<release>[bf]*)(?P<build>\d*)
|
||||
commit = True
|
||||
tag = True
|
||||
|
||||
@@ -15,5 +15,5 @@
|
||||
"@andvikt"
|
||||
],
|
||||
"issue_tracker": "https://github.com/andvikt/mega_hacs/issues",
|
||||
"version": "v1.1.2b0"
|
||||
"version": "v1.1.3"
|
||||
}
|
||||
@@ -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.
|
||||
|
||||
|
||||
Reference in New Issue
Block a user