mirror of
https://github.com/home-assistant/supervisor.git
synced 2025-07-28 11:36:32 +00:00
commit
598108d294
@ -2,7 +2,8 @@ ARG BUILD_FROM
|
|||||||
FROM $BUILD_FROM
|
FROM $BUILD_FROM
|
||||||
|
|
||||||
ENV \
|
ENV \
|
||||||
S6_SERVICES_GRACETIME=10000
|
S6_SERVICES_GRACETIME=10000 \
|
||||||
|
SUPERVISOR_API=http://localhost
|
||||||
|
|
||||||
# Install base
|
# Install base
|
||||||
RUN \
|
RUN \
|
||||||
|
@ -3,7 +3,7 @@ from enum import Enum
|
|||||||
from ipaddress import ip_network
|
from ipaddress import ip_network
|
||||||
from pathlib import Path
|
from pathlib import Path
|
||||||
|
|
||||||
SUPERVISOR_VERSION = "241"
|
SUPERVISOR_VERSION = "242"
|
||||||
|
|
||||||
URL_HASSIO_ADDONS = "https://github.com/home-assistant/hassio-addons"
|
URL_HASSIO_ADDONS = "https://github.com/home-assistant/hassio-addons"
|
||||||
URL_HASSIO_APPARMOR = "https://version.home-assistant.io/apparmor.txt"
|
URL_HASSIO_APPARMOR = "https://version.home-assistant.io/apparmor.txt"
|
||||||
|
@ -258,7 +258,7 @@ class SnapshotManager(CoreSysAttributes):
|
|||||||
# finish homeassistant task
|
# finish homeassistant task
|
||||||
_LOGGER.info("Restore %s wait until homeassistant ready", snapshot.slug)
|
_LOGGER.info("Restore %s wait until homeassistant ready", snapshot.slug)
|
||||||
await task_hass
|
await task_hass
|
||||||
await self.sys_homeassistant.start()
|
await self.sys_homeassistant.core.start()
|
||||||
|
|
||||||
except Exception: # pylint: disable=broad-except
|
except Exception: # pylint: disable=broad-except
|
||||||
_LOGGER.exception("Restore %s error", snapshot.slug)
|
_LOGGER.exception("Restore %s error", snapshot.slug)
|
||||||
@ -327,7 +327,7 @@ class SnapshotManager(CoreSysAttributes):
|
|||||||
|
|
||||||
# Do we need start HomeAssistant?
|
# Do we need start HomeAssistant?
|
||||||
if not await self.sys_homeassistant.core.is_running():
|
if not await self.sys_homeassistant.core.is_running():
|
||||||
await self.sys_homeassistant.start()
|
await self.sys_homeassistant.core.start()
|
||||||
|
|
||||||
# Check If we can access to API / otherwise restart
|
# Check If we can access to API / otherwise restart
|
||||||
if not await self.sys_homeassistant.api.check_api_state():
|
if not await self.sys_homeassistant.api.check_api_state():
|
||||||
|
Loading…
x
Reference in New Issue
Block a user