mirror of
https://github.com/home-assistant/supervisor.git
synced 2025-10-17 07:39:33 +00:00
Use label instead env, cleanup build (#50)
* Use label instead env, cleanup build * Update const.py * fix lint * add space * fix lint * use dynamic type * fix lint * fix path * fix label read * fix bug
This commit is contained in:
@@ -4,7 +4,6 @@ import logging
|
||||
import docker
|
||||
|
||||
from . import DockerBase
|
||||
from ..tools import get_version_from_env
|
||||
|
||||
_LOGGER = logging.getLogger(__name__)
|
||||
|
||||
@@ -51,8 +50,7 @@ class DockerHomeAssistant(DockerBase):
|
||||
{'bind': '/ssl', 'mode': 'rw'},
|
||||
})
|
||||
|
||||
self.version = get_version_from_env(
|
||||
self.container.attrs['Config']['Env'])
|
||||
self.process_metadata()
|
||||
|
||||
_LOGGER.info("Start docker addon %s with version %s",
|
||||
self.image, self.version)
|
||||
|
Reference in New Issue
Block a user