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

Convert map card to Lit/TS #2826

Merged
merged 2 commits into from Feb 25, 2019
Merged

Convert map card to Lit/TS #2826

merged 2 commits into from Feb 25, 2019

Conversation

balloob
Copy link
Member

@balloob balloob commented Feb 23, 2019

No description provided.

@ghost ghost assigned balloob Feb 23, 2019
@ghost ghost added the in progress label Feb 23, 2019
@property({ type: Boolean, reflect: true })
public isPanel = false;

@property()
Copy link
Member

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

Copy link
Member Author

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).

Copy link
Member

@iantrich iantrich left a 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[]'.

@balloob balloob merged commit 90a1f7e into dev Feb 25, 2019
@delete-merged-branch delete-merged-branch bot deleted the map-card-ts-lit branch February 25, 2019 19:10
@ghost ghost removed the in progress label Feb 25, 2019
@balloob balloob mentioned this pull request Feb 28, 2019
@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