Remove passing in deprecated loop arguments (#1733)

This commit is contained in:
Franck Nijhof 2020-05-21 12:01:21 +02:00 committed by GitHub
parent 7d4866234f
commit 522f68bf68
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with 4 additions and 4 deletions

View File

@ -23,7 +23,7 @@ class DockerInterface(CoreSysAttributes):
"""Initialize Docker base wrapper."""
self.coresys: CoreSys = coresys
self._meta: Optional[Dict[str, Any]] = None
self.lock: asyncio.Lock = asyncio.Lock(loop=coresys.loop)
self.lock: asyncio.Lock = asyncio.Lock()
@property
def timeout(self) -> str:

View File

@ -67,7 +67,7 @@ class HomeAssistant(JsonConfig, CoreSysAttributes):
super().__init__(FILE_HASSIO_HOMEASSISTANT, SCHEMA_HASS_CONFIG)
self.coresys: CoreSys = coresys
self.instance: DockerHomeAssistant = DockerHomeAssistant(coresys)
self.lock: asyncio.Lock = asyncio.Lock(loop=coresys.loop)
self.lock: asyncio.Lock = asyncio.Lock()
self._error_state: bool = False
# We don't persist access tokens. Instead we fetch new ones when needed

View File

@ -19,7 +19,7 @@ class SnapshotManager(CoreSysAttributes):
"""Initialize a snapshot manager."""
self.coresys = coresys
self.snapshots_obj = {}
self.lock = asyncio.Lock(loop=coresys.loop)
self.lock = asyncio.Lock()
@property
def list_snapshots(self):

View File

@ -23,7 +23,7 @@ class GitRepo(CoreSysAttributes):
self.coresys = coresys
self.repo = None
self.path = path
self.lock = asyncio.Lock(loop=coresys.loop)
self.lock = asyncio.Lock()
self.data = RE_REPOSITORY.match(url).groupdict()