Skip to content

Filter battery sensors from generated UI#4799

Merged
bramkragten merged 2 commits into
devfrom
filter-battery-sensor
Feb 7, 2020
Merged

Filter battery sensors from generated UI#4799
bramkragten merged 2 commits into
devfrom
filter-battery-sensor

Conversation

@balloob
Copy link
Copy Markdown
Member

@balloob balloob commented Feb 6, 2020

Breaking change

Proposed change

Hide battery sensors from the area cards in the auto generated UI.

Fixes #4780

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:

domain === "sensor" &&
stateObj &&
stateObj.attributes.device_class === SENSOR_DEVICE_CLASS_BATTERY
stateObj?.attributes.device_class === SENSOR_DEVICE_CLASS_BATTERY
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.

wait...wat...?

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 merged commit 8a4c52a into dev Feb 7, 2020
@delete-merged-branch delete-merged-branch Bot deleted the filter-battery-sensor branch February 7, 2020 17:32
@lock lock Bot locked and limited conversation to collaborators Feb 9, 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.

Hide battery sensors from the generated UI

4 participants