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 map card to Lit/TS #2826
Conversation
@property({ type: Boolean, reflect: true }) | ||
public isPanel = false; | ||
|
||
@property() |
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 decide on a standard for decorators? I don't like how we're doing inline sometimes but not always. I would vote for not inline as it is easier to be consistent and avoid long lines
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.
Well, prettier will put it on a new line if the property options get too long (as happened on the prop above this one).
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 after those changes are made and addressing the Travis error
src/panels/lovelace/editor/config-elements/hui-map-card-editor.ts(66,5): error TS2322: Type '(string | EntityConfig)[]' is not assignable to type 'string[]'.
No description provided.