mirror of
https://github.com/home-assistant/supervisor.git
synced 2025-07-12 11:46:31 +00:00
fix minor things
This commit is contained in:
parent
d4369acf8d
commit
db412c89ca
@ -79,7 +79,7 @@ class CoreConfig(object):
|
|||||||
@property
|
@property
|
||||||
def path_config_docker(self):
|
def path_config_docker(self):
|
||||||
"""Return config path extern for docker."""
|
"""Return config path extern for docker."""
|
||||||
return HOMEASSISTANT_CONFIG.format(os.environ['SUPERVISOR_NAME'])
|
return HOMEASSISTANT_CONFIG.format(os.environ['SUPERVISOR_SHARE'])
|
||||||
|
|
||||||
@property
|
@property
|
||||||
def path_config(self):
|
def path_config(self):
|
||||||
@ -89,7 +89,7 @@ class CoreConfig(object):
|
|||||||
@property
|
@property
|
||||||
def path_ssl_docker(self):
|
def path_ssl_docker(self):
|
||||||
"""Return SSL path extern for docker."""
|
"""Return SSL path extern for docker."""
|
||||||
return HOMEASSISTANT_SSL.format(os.environ['SUPERVISOR_NAME'])
|
return HOMEASSISTANT_SSL.format(os.environ['SUPERVISOR_SHARE'])
|
||||||
|
|
||||||
@property
|
@property
|
||||||
def path_ssl(self):
|
def path_ssl(self):
|
||||||
|
@ -42,9 +42,6 @@ class HassIO(object):
|
|||||||
"""Setup HassIO orchestration."""
|
"""Setup HassIO orchestration."""
|
||||||
# supervisor
|
# supervisor
|
||||||
await self.supervisor.attach()
|
await self.supervisor.attach()
|
||||||
_LOGGER.info(
|
|
||||||
"Attach to supervisor image %s version %s", self.supervisor.image,
|
|
||||||
self.supervisor.version)
|
|
||||||
|
|
||||||
# hostcontroll
|
# hostcontroll
|
||||||
host_info = await self.host_controll.info()
|
host_info = await self.host_controll.info()
|
||||||
@ -77,7 +74,6 @@ class HassIO(object):
|
|||||||
await self.api.start()
|
await self.api.start()
|
||||||
|
|
||||||
# run HomeAssistant
|
# run HomeAssistant
|
||||||
_LOGGER.info("Run HomeAssistant now.")
|
|
||||||
await self.homeassistant.run()
|
await self.homeassistant.run()
|
||||||
|
|
||||||
async def stop(self):
|
async def stop(self):
|
||||||
|
Loading…
x
Reference in New Issue
Block a user