Skip to content

Commit

Permalink
Apply suggestions from code review
Browse files Browse the repository at this point in the history
Co-authored-by: Martin Hjelmare <[email protected]>
  • Loading branch information
emontnemery and MartinHjelmare authored Dec 4, 2024
1 parent c2d54f2 commit d0174f3
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions homeassistant/components/backup/manager.py
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@
LOGGER,
)
from .models import AgentBackup, Folder
from .util import read_backup, receieve_file
from .util import read_backup, receive_file


@dataclass(frozen=True, kw_only=True, slots=True)
Expand Down Expand Up @@ -387,7 +387,7 @@ async def async_receive_backup(
temp_dir_handler.name, contents.filename or "backup.tar"
)

await receieve_file(self.hass, contents, target_temp_file)
await receive_file(self.hass, contents, target_temp_file)

def _copy_and_cleanup(
local_file_paths: list[Path], backup: AgentBackup
Expand Down
2 changes: 1 addition & 1 deletion homeassistant/components/backup/util.py
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ def read_backup(backup_path: Path) -> AgentBackup:
)


async def receieve_file(
async def receive_file(
hass: HomeAssistant, contents: aiohttp.BodyPartReader, path: Path
) -> None:
"""Receive a file from a stream and write it to a file."""
Expand Down

0 comments on commit d0174f3

Please sign in to comment.