From 15906732e85b1e256f98cbf438c82024a166283b Mon Sep 17 00:00:00 2001 From: Pascal Vizeli Date: Tue, 28 Mar 2017 23:15:34 +0200 Subject: [PATCH] Add more info output --- hassio_api/README.md | 1 + hassio_api/hassio/core.py | 11 +++++++++-- 2 files changed, 10 insertions(+), 2 deletions(-) diff --git a/hassio_api/README.md b/hassio_api/README.md index ff37c45c8..948ef8b24 100644 --- a/hassio_api/README.md +++ b/hassio_api/README.md @@ -7,6 +7,7 @@ Communicate over unix socket with a host daemon. - commands ``` # info +-> {'host', 'version'} # reboot # shutdown # host-update [v] diff --git a/hassio_api/hassio/core.py b/hassio_api/hassio/core.py index 361296813..8f8f1bf57 100644 --- a/hassio_api/hassio/core.py +++ b/hassio_api/hassio/core.py @@ -26,6 +26,9 @@ async def run_hassio(loop): # init Supervisor Docker docker_super = DockerSupervisor(config, loop, dock) await docker_super.attach() + _LOGGER.info( + "Attach to supervisor image %s tag %s", docker_super.image, + docker_super.tag) # init HomeAssistant Docker docker_hass = DockerHomeAssistant( @@ -33,9 +36,13 @@ async def run_hassio(loop): tag=config.homeassistant_tag ) - # init hostcontroll + # init HostControll host_controll = HostControll(loop) - await host_controll.info() + host_info = await host_controll.info() + if host_info: + _LOGGER.info( + "Connected to host controll daemon. OS: %s Version: %s", + host_info.get('host'), host_info.get('version')) # first start of supervisor? if config.homeassistant_tag is None: