From 748d03de88312c755a3b0a86f1e3fce24fd675ca Mon Sep 17 00:00:00 2001 From: pvizeli Date: Wed, 29 Mar 2017 16:35:09 +0200 Subject: [PATCH] Fix detection --- hassio_api/hassio/config.py | 2 +- hassio_api/hassio/core.py | 2 +- hassio_api/hassio/host_controll.py | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/hassio_api/hassio/config.py b/hassio_api/hassio/config.py index cd42d5b4e..304a7587b 100644 --- a/hassio_api/hassio/config.py +++ b/hassio_api/hassio/config.py @@ -30,7 +30,7 @@ class CoreConfig(object): if not self._data: self._data.update({ HOMEASSISTANT_IMAGE: os.environ['HOMEASSISTANT_REPOSITORY'], - HOMEASSISTANT_TAG: '', + HOMEASSISTANT_TAG: None, }) def save(self): diff --git a/hassio_api/hassio/core.py b/hassio_api/hassio/core.py index 24d139c99..16a2c3873 100644 --- a/hassio_api/hassio/core.py +++ b/hassio_api/hassio/core.py @@ -65,7 +65,7 @@ class HassIO(object): self.config.homeassistant_tag = current[HOMEASSISTANT_TAG] else: - _LOGGER.info("HomeAssistant docker is exists.") + _LOGGER.info("HomeAssistant docker exists. Run it now") # run HomeAssistant await self.homeassistant.run() diff --git a/hassio_api/hassio/host_controll.py b/hassio_api/hassio/host_controll.py index 2624c609e..83dc24dfd 100644 --- a/hassio_api/hassio/host_controll.py +++ b/hassio_api/hassio/host_controll.py @@ -45,7 +45,7 @@ class HostControll(object): writer.write("{}\n".format(command).encode()) data = await reader.readline() - response = data.decode().upper() + response = data.decode() _LOGGER.info("Receive from HostControll: %s.", response) if response == "OK":