mirror of
https://github.com/home-assistant/supervisor.git
synced 2025-07-19 15:16:33 +00:00
Grammar and spelling fixes (#772)
This commit is contained in:
parent
53dab4ee45
commit
cecad526a2
2
API.md
2
API.md
@ -415,7 +415,7 @@ Proxy to real websocket instance.
|
|||||||
|
|
||||||
### RESTful for API addons
|
### RESTful for API addons
|
||||||
|
|
||||||
If a add-on will call itself, you can use `/addons/self/...`.
|
If an add-on will call itself, you can use `/addons/self/...`.
|
||||||
|
|
||||||
- GET `/addons`
|
- GET `/addons`
|
||||||
|
|
||||||
|
@ -66,7 +66,7 @@ class HassOS(CoreSysAttributes):
|
|||||||
return self._board
|
return self._board
|
||||||
|
|
||||||
def _check_host(self):
|
def _check_host(self):
|
||||||
"""Check if HassOS is availabe."""
|
"""Check if HassOS is available."""
|
||||||
if not self.available:
|
if not self.available:
|
||||||
_LOGGER.error("No HassOS available")
|
_LOGGER.error("No HassOS available")
|
||||||
raise HassOSNotSupportedError()
|
raise HassOSNotSupportedError()
|
||||||
|
@ -191,7 +191,7 @@ class HomeAssistant(JsonConfig, CoreSysAttributes):
|
|||||||
|
|
||||||
@property
|
@property
|
||||||
def hassio_token(self):
|
def hassio_token(self):
|
||||||
"""Return a access token for the Hass.io API."""
|
"""Return an access token for the Hass.io API."""
|
||||||
return self._data.get(ATTR_ACCESS_TOKEN)
|
return self._data.get(ATTR_ACCESS_TOKEN)
|
||||||
|
|
||||||
@property
|
@property
|
||||||
@ -260,7 +260,7 @@ class HomeAssistant(JsonConfig, CoreSysAttributes):
|
|||||||
_LOGGER.warning("Version %s is already installed", version)
|
_LOGGER.warning("Version %s is already installed", version)
|
||||||
return HomeAssistantUpdateError()
|
return HomeAssistantUpdateError()
|
||||||
|
|
||||||
# process a update
|
# process an update
|
||||||
async def _update(to_version):
|
async def _update(to_version):
|
||||||
"""Run Home Assistant update."""
|
"""Run Home Assistant update."""
|
||||||
try:
|
try:
|
||||||
|
@ -118,7 +118,7 @@ class SnapshotManager(CoreSysAttributes):
|
|||||||
async def do_snapshot_full(self, name="", password=None):
|
async def do_snapshot_full(self, name="", password=None):
|
||||||
"""Create a full snapshot."""
|
"""Create a full snapshot."""
|
||||||
if self.lock.locked():
|
if self.lock.locked():
|
||||||
_LOGGER.error("It is already a snapshot/restore process running")
|
_LOGGER.error("A snapshot/restore process is already running")
|
||||||
return None
|
return None
|
||||||
|
|
||||||
snapshot = self._create_snapshot(name, SNAPSHOT_FULL, password)
|
snapshot = self._create_snapshot(name, SNAPSHOT_FULL, password)
|
||||||
@ -153,7 +153,7 @@ class SnapshotManager(CoreSysAttributes):
|
|||||||
password=None):
|
password=None):
|
||||||
"""Create a partial snapshot."""
|
"""Create a partial snapshot."""
|
||||||
if self.lock.locked():
|
if self.lock.locked():
|
||||||
_LOGGER.error("It is already a snapshot/restore process running")
|
_LOGGER.error("A snapshot/restore process is already running")
|
||||||
return None
|
return None
|
||||||
|
|
||||||
addons = addons or []
|
addons = addons or []
|
||||||
@ -201,7 +201,7 @@ class SnapshotManager(CoreSysAttributes):
|
|||||||
async def do_restore_full(self, snapshot, password=None):
|
async def do_restore_full(self, snapshot, password=None):
|
||||||
"""Restore a snapshot."""
|
"""Restore a snapshot."""
|
||||||
if self.lock.locked():
|
if self.lock.locked():
|
||||||
_LOGGER.error("It is already a snapshot/restore process running")
|
_LOGGER.error("A snapshot/restore process is already running")
|
||||||
return False
|
return False
|
||||||
|
|
||||||
if snapshot.sys_type != SNAPSHOT_FULL:
|
if snapshot.sys_type != SNAPSHOT_FULL:
|
||||||
@ -274,7 +274,7 @@ class SnapshotManager(CoreSysAttributes):
|
|||||||
addons=None, folders=None, password=None):
|
addons=None, folders=None, password=None):
|
||||||
"""Restore a snapshot."""
|
"""Restore a snapshot."""
|
||||||
if self.lock.locked():
|
if self.lock.locked():
|
||||||
_LOGGER.error("It is already a snapshot/restore process running")
|
_LOGGER.error("A snapshot/restore process is already running")
|
||||||
return False
|
return False
|
||||||
|
|
||||||
if snapshot.protected and not snapshot.set_password(password):
|
if snapshot.protected and not snapshot.set_password(password):
|
||||||
|
Loading…
x
Reference in New Issue
Block a user