mirror of
https://github.com/home-assistant/supervisor.git
synced 2025-07-23 17:16:33 +00:00
Update __init__.py
This commit is contained in:
parent
7a470bb3ac
commit
3c4240a8a8
@ -199,7 +199,7 @@ class DockerBase(object):
|
|||||||
container.remove(force=True)
|
container.remove(force=True)
|
||||||
|
|
||||||
async def remove(self):
|
async def remove(self):
|
||||||
"""Remove docker container."""
|
"""Remove docker images."""
|
||||||
if self._lock.locked():
|
if self._lock.locked():
|
||||||
_LOGGER.error("Can't excute remove while a task is in progress")
|
_LOGGER.error("Can't excute remove while a task is in progress")
|
||||||
return False
|
return False
|
||||||
@ -208,7 +208,7 @@ class DockerBase(object):
|
|||||||
return await self.loop.run_in_executor(None, self._remove)
|
return await self.loop.run_in_executor(None, self._remove)
|
||||||
|
|
||||||
def _remove(self):
|
def _remove(self):
|
||||||
"""remove docker container.
|
"""remove docker images.
|
||||||
|
|
||||||
Need run inside executor.
|
Need run inside executor.
|
||||||
"""
|
"""
|
||||||
|
Loading…
x
Reference in New Issue
Block a user