Fix typos in docstrings (#4546)
* [typo] `Assitant` -> `Assistant` * [typo] `an` -> `a`
This commit is contained in:
parent
49ce468d83
commit
f5afe13e91
|
@ -540,7 +540,7 @@ class Backup(CoreSysAttributes):
|
|||
_LOGGER.warning("Can't restore folder %s: %s", folder, err)
|
||||
|
||||
async def store_homeassistant(self):
|
||||
"""Backup Home Assitant Core configuration folder."""
|
||||
"""Backup Home Assistant Core configuration folder."""
|
||||
self._data[ATTR_HOMEASSISTANT] = {ATTR_VERSION: self.sys_homeassistant.version}
|
||||
|
||||
# Backup Home Assistant Core config directory
|
||||
|
@ -557,7 +557,7 @@ class Backup(CoreSysAttributes):
|
|||
self.homeassistant[ATTR_SIZE] = homeassistant_file.size
|
||||
|
||||
async def restore_homeassistant(self) -> Awaitable[None]:
|
||||
"""Restore Home Assitant Core configuration folder."""
|
||||
"""Restore Home Assistant Core configuration folder."""
|
||||
await self.sys_homeassistant.core.stop()
|
||||
|
||||
# Restore Home Assistant Core config directory
|
||||
|
|
|
@ -725,7 +725,7 @@ class CoreSysAttributes:
|
|||
def sys_run_in_executor(
|
||||
self, funct: Callable[..., T], *args: tuple[Any], **kwargs: dict[str, Any]
|
||||
) -> Coroutine[Any, Any, T]:
|
||||
"""Add an job to the executor pool."""
|
||||
"""Add a job to the executor pool."""
|
||||
return self.coresys.run_in_executor(funct, *args, **kwargs)
|
||||
|
||||
def sys_create_task(self, coroutine: Coroutine) -> asyncio.Task:
|
||||
|
|
Loading…
Reference in New Issue