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

Fix attribute-prop mapping #2794

Merged
merged 1 commit into from
Feb 19, 2019
Merged

Fix attribute-prop mapping #2794

merged 1 commit into from
Feb 19, 2019

Conversation

balloob
Copy link
Member

@balloob balloob commented Feb 19, 2019

When I converted ha-entity-picker from Polymer to Lit, I didn't migrate the attribute to prop mapping. Lit defaults to lowercasing it, while Polymer would convert from camel to kebabcase. So in Lit, the attribute for domainFilter became domainfilter, while in Polymer it was domain-filter. This fixes it.

Don't feel like going through the code and find all occurrences of ha-entity-picker so just use the Lit property options to make the attributes be like the Polymer ones.

@ghost ghost assigned balloob Feb 19, 2019
@ghost ghost added the in progress label Feb 19, 2019
@balloob balloob merged commit 12064a0 into dev Feb 19, 2019
@delete-merged-branch delete-merged-branch bot deleted the fix-attribute-prop-mapping branch February 19, 2019 17:09
@ghost ghost removed the in progress label Feb 19, 2019
@balloob balloob mentioned this pull request Feb 19, 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

2 participants