Skip to content

entity-filter card allow state_filter.value == 0 (number 0)#8225

Merged
bramkragten merged 5 commits intohome-assistant:devfrom
b3nj1:dev
Jan 25, 2021
Merged

entity-filter card allow state_filter.value == 0 (number 0)#8225
bramkragten merged 5 commits intohome-assistant:devfrom
b3nj1:dev

Conversation

@b3nj1
Copy link
Copy Markdown
Contributor

@b3nj1 b3nj1 commented Jan 24, 2021

Breaking change

Proposed change

When selecting value from filter.value or filter, only check for existence of filter.value not its underlying value.

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

card:
  title: Rain
entities:
  - entity: sensor.backyard_rain_day
    state_filter:
      - operator: '>'
        value: 0

Additional information

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:

@spacegaier spacegaier changed the title entity-filter card allow state_filter.value == 0 (number 0) to fix #8224 entity-filter card allow state_filter.value == 0 (number 0) Jan 24, 2021
@bramkragten bramkragten merged commit a6b77c0 into home-assistant:dev Jan 25, 2021
@github-actions github-actions bot locked and limited conversation to collaborators Jan 26, 2021
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.

entity-filter card does not work when state_filter.value is 0 (number 0)

4 participants