Skip to content

Hassio: Fix download snapshot#2071

Merged
balloob merged 6 commits intohome-assistant:devfrom
bramkragten:hassio-snapshot-download
Nov 21, 2018
Merged

Hassio: Fix download snapshot#2071
balloob merged 6 commits intohome-assistant:devfrom
bramkragten:hassio-snapshot-download

Conversation

@bramkragten
Copy link
Copy Markdown
Member

@bramkragten bramkragten commented Nov 20, 2018

Using the new auth/sign_path to generate a temp path.

@ghost ghost assigned bramkragten Nov 20, 2018
@ghost ghost added the in progress label Nov 20, 2018
@bramkragten bramkragten changed the title Fix download snapshot Hassio: Fix download snapshot Nov 20, 2018
_computeDownloadName(snapshot) {
const name = this._computeName(snapshot).replace(/[^a-z0-9]+/gi, "_");
return `Hass_io_${name}.tar`;
_downloadClicked() {
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No async function?

return `Hass_io_${name}.tar`;
_downloadClicked() {
this.hass
.callWS({
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We should make this a helper function in auth/data.ts (like the other functions in there)

Copy link
Copy Markdown
Member

@balloob balloob left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Few minor comments, ok to merge when addressed

@ghost ghost assigned balloob Nov 21, 2018
@balloob balloob merged commit 39819c5 into home-assistant:dev Nov 21, 2018
@ghost ghost removed the in progress label Nov 21, 2018
@bramkragten bramkragten deleted the hassio-snapshot-download branch November 22, 2018 08:01
@github-actions github-actions bot locked and limited conversation to collaborators Jul 7, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants