Fix typos in docstrings (#4546)

* [typo] `Assitant` -> `Assistant`

* [typo] `an` -> `a`
This commit is contained in:
Chris Carini 2023-09-26 00:21:57 -07:00 committed by GitHub
parent 49ce468d83
commit f5afe13e91
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 3 additions and 3 deletions

View File

@ -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

View File

@ -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: