Skip to content

Thermostat Editor to HA - Form#11763

Merged
bramkragten merged 2 commits intodevfrom
thermostat-card-editor-ha-form
Feb 22, 2022
Merged

Thermostat Editor to HA - Form#11763
bramkragten merged 2 commits intodevfrom
thermostat-card-editor-ha-form

Conversation

@zsarnett
Copy link
Copy Markdown
Contributor

Breaking change

Proposed change

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:

const target = ev.target! as EditorTarget;
private _valueChanged(ev: CustomEvent): void {
const config = ev.detail.value;
Object.keys(config).forEach((k) => config[k] === "" && delete config[k]);
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.

This is for theme? Can we give that the same logic as the text selector?

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.

bramkragten
bramkragten previously approved these changes Feb 21, 2022
@bramkragten bramkragten merged commit 73855e6 into dev Feb 22, 2022
@bramkragten bramkragten deleted the thermostat-card-editor-ha-form branch February 22, 2022 09:56
@github-actions github-actions bot locked and limited conversation to collaborators Feb 23, 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