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

Conditional tile feature #20612

Open
wants to merge 7 commits into
base: dev
Choose a base branch
from

Conversation

JosephAbbey
Copy link
Contributor

@JosephAbbey JosephAbbey commented Apr 24, 2024

Proposed change

Added a conditional tile feature that uses the generic, pre-defined conditions code from the card and row.

This does not include a visual editor for the feature, as that is not yet implemented for the entity row either, and I am planning to implement it as a separate pr.

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

type: tile
entity: update.demo_add_on
features:
  - type: conditional
    conditions:
      - condition: state
        entity: update.demo_add_on
        state_not: 'off'
    feature:
      type: update-actions
      backup: ask

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.

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

@JosephAbbey JosephAbbey changed the title conditional feature Conditional tile feature Apr 24, 2024
@JosephAbbey JosephAbbey marked this pull request as ready for review April 26, 2024 17:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants