fix(download): update download method for companion app integration#79
Merged
fix(download): update download method for companion app integration#79
Conversation
There was a problem hiding this comment.
Pull request overview
Refactors download behavior to use a shared fileDownload helper, aiming to improve handling of downloads initiated from the companion app.
Changes:
- Added a
fileDownload(href, filename)utility to centralize anchor-based downloads. - Updated the sidebar config code editor to use
fileDownloadfor YAML downloads.
Reviewed changes
Copilot reviewed 2 out of 2 changed files in this pull request and generated 2 comments.
| File | Description |
|---|---|
| src/utilities/dom-utils.ts | Adds the new fileDownload helper for initiating browser downloads. |
| src/components/sidebar-dialog-code-editor.ts | Switches YAML download logic to the new helper. |
π‘ Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
github-actions Bot
pushed a commit
that referenced
this pull request
Feb 20, 2026
## [3.0.2-beta.2](v3.0.2-beta.1...v3.0.2-beta.2) (2026-02-20) ### Bug Fixes * **download:** update download method for companion app integration ([#79](#79)) ([7571f2e](7571f2e))
|
π This PR is included in version 3.0.2-beta.2 π The release is available on GitHub release Your semantic-release bot π¦π |
github-actions Bot
pushed a commit
that referenced
this pull request
Feb 20, 2026
## [3.0.2](v3.0.1...v3.0.2) (2026-02-20) ### Bug Fixes * **download:** update download method for companion app integration ([#79](#79)) ([7571f2e](7571f2e)) * **sidebar:** add method to handle sidebar DOM updates during Home Assistant state changes ([#76](#76)) ([d3c2833](d3c2833)), closes [#73](#73)
|
π This PR is included in version 3.0.2 π The release is available on GitHub release Your semantic-release bot π¦π |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Refactor the download functionality to utilize a dedicated
fileDownloadutility, improving the handling of downloads initiated from the companion app.