mirror of
https://github.com/home-assistant/supervisor.git
synced 2025-07-16 05:36:29 +00:00
Fix detection
This commit is contained in:
parent
32cb00258b
commit
748d03de88
@ -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):
|
||||
|
@ -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()
|
||||
|
@ -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":
|
||||
|
Loading…
x
Reference in New Issue
Block a user