This commit is contained in:
Pascal Vizeli 2017-05-31 23:44:05 +02:00 committed by GitHub
parent 6b16da93cd
commit 8287330c67

View File

@ -60,12 +60,3 @@ class DockerHomeAssistant(DockerBase):
_LOGGER.info(
"Start homeassistant %s with version %s", self.image, self.version)
return True
async def update(self, tag):
"""Update homeassistant docker image."""
if self._lock.locked():
_LOGGER.error("Can't excute update while a task is in progress")
return False
async with self._lock:
return await self.loop.run_in_executor(None, self._update, tag)