mirror of
https://github.com/home-assistant/supervisor.git
synced 2025-07-17 22:26:30 +00:00
Fix detection
This commit is contained in:
parent
32cb00258b
commit
748d03de88
@ -30,7 +30,7 @@ class CoreConfig(object):
|
|||||||
if not self._data:
|
if not self._data:
|
||||||
self._data.update({
|
self._data.update({
|
||||||
HOMEASSISTANT_IMAGE: os.environ['HOMEASSISTANT_REPOSITORY'],
|
HOMEASSISTANT_IMAGE: os.environ['HOMEASSISTANT_REPOSITORY'],
|
||||||
HOMEASSISTANT_TAG: '',
|
HOMEASSISTANT_TAG: None,
|
||||||
})
|
})
|
||||||
|
|
||||||
def save(self):
|
def save(self):
|
||||||
|
@ -65,7 +65,7 @@ class HassIO(object):
|
|||||||
|
|
||||||
self.config.homeassistant_tag = current[HOMEASSISTANT_TAG]
|
self.config.homeassistant_tag = current[HOMEASSISTANT_TAG]
|
||||||
else:
|
else:
|
||||||
_LOGGER.info("HomeAssistant docker is exists.")
|
_LOGGER.info("HomeAssistant docker exists. Run it now")
|
||||||
|
|
||||||
# run HomeAssistant
|
# run HomeAssistant
|
||||||
await self.homeassistant.run()
|
await self.homeassistant.run()
|
||||||
|
@ -45,7 +45,7 @@ class HostControll(object):
|
|||||||
writer.write("{}\n".format(command).encode())
|
writer.write("{}\n".format(command).encode())
|
||||||
data = await reader.readline()
|
data = await reader.readline()
|
||||||
|
|
||||||
response = data.decode().upper()
|
response = data.decode()
|
||||||
_LOGGER.info("Receive from HostControll: %s.", response)
|
_LOGGER.info("Receive from HostControll: %s.", response)
|
||||||
|
|
||||||
if response == "OK":
|
if response == "OK":
|
||||||
|
Loading…
x
Reference in New Issue
Block a user