Skip to content

Lovelace Entity Card Editor to Ha Form - Adds Theme Selector and HaFormColumn#11731

Merged
zsarnett merged 16 commits intodevfrom
entity-card-editor-ha-form
Feb 21, 2022
Merged

Lovelace Entity Card Editor to Ha Form - Adds Theme Selector and HaFormColumn#11731
zsarnett merged 16 commits intodevfrom
entity-card-editor-ha-form

Conversation

@zsarnett
Copy link
Copy Markdown
Contributor

@zsarnett zsarnett commented Feb 18, 2022

Breaking change

Proposed change

Add Theme Selector
Add HaFormColumn
Convert Entity Card Editor to HaForm

Type of change

  • Dependency upgrade
  • Bugfix (non-breaking change which fixes an issue)
  • New feature (thank you!)
  • Breaking change (fix/feature causing existing functionality to break)
  • Code quality improvements to existing code or addition of tests

Example configuration

Additional information

  • This PR fixes or closes issue: fixes #
  • This PR is related to issue or discussion:
  • Link to documentation pull request:

Checklist

  • The code change is tested and works locally.
  • There is no commented out code in this PR.
  • Tests have been added to verify that the new code works.

If user exposed functionality or configuration variables are added/changed:


protected render() {
return html`
<hui-theme-select-editor
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We should not use a hui element here, but let's do that in a later PR

Copy link
Copy Markdown
Contributor Author

@zsarnett zsarnett left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

Comment on lines +103 to +105
const config = ev.detail.value;
Object.keys(config).forEach((k) => config[k] === "" && delete config[k]);
fireEvent(this, "config-changed", { config });
Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Isn't this done by HA Form Automatically?

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No, it doesn't remove values

@zsarnett zsarnett enabled auto-merge (squash) February 21, 2022 15:10
@zsarnett zsarnett merged commit 6cac7ee into dev Feb 21, 2022
@delete-merged-branch delete-merged-branch bot deleted the entity-card-editor-ha-form branch February 21, 2022 15:53
@github-actions github-actions bot locked and limited conversation to collaborators Feb 22, 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.

3 participants