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
Convert dev tools template to Lit and store last used template #6669
Conversation
src/panels/developer-tools/template/developer-tools-template.ts
Outdated
Show resolved
Hide resolved
src/panels/developer-tools/template/developer-tools-template.ts
Outdated
Show resolved
Hide resolved
src/panels/developer-tools/template/developer-tools-template.ts
Outdated
Show resolved
Hide resolved
src/panels/developer-tools/template/developer-tools-template.ts
Outdated
Show resolved
Hide resolved
src/panels/developer-tools/template/developer-tools-template.ts
Outdated
Show resolved
Hide resolved
src/panels/developer-tools/template/developer-tools-template.ts
Outdated
Show resolved
Hide resolved
} else { | ||
this._template = DEMO_TEMPLATE; | ||
} | ||
this._renderTemplate(); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Instead of rendering, why don't we just subscribe ? See subscribeRenderTemplate
in data/ws-template.ts
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
If we don't pass that entity id's, will that update on every state change?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can we drop random ?
src/panels/developer-tools/template/developer-tools-template.ts
Outdated
Show resolved
Hide resolved
src/panels/developer-tools/template/developer-tools-template.ts
Outdated
Show resolved
Hide resolved
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good 👍
Proposed change
Type of change
Example configuration
Additional information
Checklist
If user exposed functionality or configuration variables are added/changed: