Skip to content

Automatically strip area name from entities#4597

Merged
bramkragten merged 1 commit into
devfrom
generate-ll-strip-name
Jan 25, 2020
Merged

Automatically strip area name from entities#4597
bramkragten merged 1 commit into
devfrom
generate-ll-strip-name

Conversation

@balloob
Copy link
Copy Markdown
Member

@balloob balloob commented Jan 25, 2020

Breaking change

Proposed change

When generating a Lovelace UI, when generating entity cards for groups and areas, we'll now automatically strip the area/group name of the entity if the entity name starts with it.

Example.

Area: Bedroom

  • Entity: Bedroom Light

Will render like this:

image

Also added some card types to generation for type checking. Found one bug in the types :)

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:
  • 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:

@bramkragten bramkragten merged commit 8abe8d7 into dev Jan 25, 2020
@delete-merged-branch delete-merged-branch Bot deleted the generate-ll-strip-name branch January 25, 2020 13:43
@lock lock Bot locked and limited conversation to collaborators Jan 26, 2020
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