Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Hassio: Fix download snapshot #2071

Merged
merged 6 commits into from
Nov 21, 2018
Merged

Hassio: Fix download snapshot #2071

merged 6 commits into from
Nov 21, 2018

Conversation

bramkragten
Copy link
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
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
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
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.

None yet

3 participants