Skip to content

Show moon phase icon in state-label-badge#7194

Merged
bramkragten merged 2 commits intohome-assistant:devfrom
iantrich:moon-phase-badge
Oct 8, 2020
Merged

Show moon phase icon in state-label-badge#7194
bramkragten merged 2 commits intohome-assistant:devfrom
iantrich:moon-phase-badge

Conversation

@iantrich
Copy link
Copy Markdown
Member

@iantrich iantrich commented Oct 2, 2020

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

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:

: "hass:timer-off-outline";
default:
return null;
return state?.attributes.device_class === "moon__phase"
Copy link
Copy Markdown
Member

@bramkragten bramkragten Oct 2, 2020

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why do we have this icon logic in here, instead of using the global icon functions? 🤔 (not specific to your PR, just generic)

Co-authored-by: Bram Kragten <mail@bramkragten.nl>
@bramkragten bramkragten merged commit 426a7ac into home-assistant:dev Oct 8, 2020
@bramkragten bramkragten mentioned this pull request Oct 21, 2020
@github-actions github-actions bot locked and limited conversation to collaborators Jul 5, 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.

Moon sensor icon in badges

4 participants