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
UI Editor for picture
card
#2240
Conversation
5bfb1a9
to
1afb770
Compare
f75cac5
to
e670654
Compare
Can we just drop service support from the UI editor for MVP ? |
@balloob yes on the MVP. I'll add a note for the user for now. |
This is a WIP. * How should I handle service data? It's kind of freeform and I don't really have a good idea on what I should do. * in action-editor I have two issues for `_navigation_path` and `_service` have TS errors saying the property doesn't exist on `ToggleActionConfig`. Not sure why that is the only type it is looking at. Should I be checking the type somewhere?
This reverts commit 1e1a1e4.
8ec631f
to
e9ddd09
Compare
picture
cardpicture
card
@bramkragten for a future PR, would it make sense to use the |
For an MVP maybe... We should just create a UI element for it that we can reuse for every card that uses |
src/panels/lovelace/editor/config-elements/hui-picture-card-editor.ts
Outdated
Show resolved
Hide resolved
UI element for service data means we need to use the service descriptions available in |
src/panels/lovelace/editor/config-elements/hui-picture-card-editor.ts
Outdated
Show resolved
Hide resolved
src/panels/lovelace/editor/config-elements/hui-picture-card-editor.ts
Outdated
Show resolved
Hide resolved
Cool. I'll follow this same pattern for the other picture editors. Hopefully someone can come up with a clean way to handle service_data after those are done. |
This is a WIP.
_navigation_path
and_service
have TS errors saying the property doesn't exist onToggleActionConfig
. Not sure why that is the only type it is looking at. Should I be checking the type somewhere?