mirror of
https://github.com/home-assistant/supervisor.git
synced 2025-07-20 07:36:29 +00:00
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)
|
_LOGGER.warning("Can't restore folder %s: %s", folder, err)
|
||||||
|
|
||||||
async def store_homeassistant(self):
|
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}
|
self._data[ATTR_HOMEASSISTANT] = {ATTR_VERSION: self.sys_homeassistant.version}
|
||||||
|
|
||||||
# Backup Home Assistant Core config directory
|
# Backup Home Assistant Core config directory
|
||||||
@ -557,7 +557,7 @@ class Backup(CoreSysAttributes):
|
|||||||
self.homeassistant[ATTR_SIZE] = homeassistant_file.size
|
self.homeassistant[ATTR_SIZE] = homeassistant_file.size
|
||||||
|
|
||||||
async def restore_homeassistant(self) -> Awaitable[None]:
|
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()
|
await self.sys_homeassistant.core.stop()
|
||||||
|
|
||||||
# Restore Home Assistant Core config directory
|
# Restore Home Assistant Core config directory
|
||||||
|
@ -725,7 +725,7 @@ class CoreSysAttributes:
|
|||||||
def sys_run_in_executor(
|
def sys_run_in_executor(
|
||||||
self, funct: Callable[..., T], *args: tuple[Any], **kwargs: dict[str, Any]
|
self, funct: Callable[..., T], *args: tuple[Any], **kwargs: dict[str, Any]
|
||||||
) -> Coroutine[Any, Any, T]:
|
) -> 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)
|
return self.coresys.run_in_executor(funct, *args, **kwargs)
|
||||||
|
|
||||||
def sys_create_task(self, coroutine: Coroutine) -> asyncio.Task:
|
def sys_create_task(self, coroutine: Coroutine) -> asyncio.Task:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user