diff --git a/API.md b/API.md index 854fd9271..01062d984 100644 --- a/API.md +++ b/API.md @@ -415,7 +415,7 @@ Proxy to real websocket instance. ### 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` diff --git a/hassio/hassos.py b/hassio/hassos.py index 05c36dcb4..6a25bd543 100644 --- a/hassio/hassos.py +++ b/hassio/hassos.py @@ -66,7 +66,7 @@ class HassOS(CoreSysAttributes): return self._board def _check_host(self): - """Check if HassOS is availabe.""" + """Check if HassOS is available.""" if not self.available: _LOGGER.error("No HassOS available") raise HassOSNotSupportedError() diff --git a/hassio/homeassistant.py b/hassio/homeassistant.py index b6afc8d99..a4b8e57fb 100644 --- a/hassio/homeassistant.py +++ b/hassio/homeassistant.py @@ -191,7 +191,7 @@ class HomeAssistant(JsonConfig, CoreSysAttributes): @property 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) @property @@ -260,7 +260,7 @@ class HomeAssistant(JsonConfig, CoreSysAttributes): _LOGGER.warning("Version %s is already installed", version) return HomeAssistantUpdateError() - # process a update + # process an update async def _update(to_version): """Run Home Assistant update.""" try: diff --git a/hassio/snapshots/__init__.py b/hassio/snapshots/__init__.py index f7f6c322f..8440e2164 100644 --- a/hassio/snapshots/__init__.py +++ b/hassio/snapshots/__init__.py @@ -118,7 +118,7 @@ class SnapshotManager(CoreSysAttributes): async def do_snapshot_full(self, name="", password=None): """Create a full snapshot.""" 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 snapshot = self._create_snapshot(name, SNAPSHOT_FULL, password) @@ -153,7 +153,7 @@ class SnapshotManager(CoreSysAttributes): password=None): """Create a partial snapshot.""" 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 addons = addons or [] @@ -201,7 +201,7 @@ class SnapshotManager(CoreSysAttributes): async def do_restore_full(self, snapshot, password=None): """Restore a snapshot.""" 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 if snapshot.sys_type != SNAPSHOT_FULL: @@ -274,7 +274,7 @@ class SnapshotManager(CoreSysAttributes): addons=None, folders=None, password=None): """Restore a snapshot.""" 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 if snapshot.protected and not snapshot.set_password(password):