-
Notifications
You must be signed in to change notification settings - Fork 246
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
fix: legend indicators respect entity attribute configuration #1115
Conversation
Thanks! This looks like a very pointy fix. @ildar170975, I don't use colour thresholds: Is this how it's supposed to work? |
Thanks, that was what I was looking for. From your tests, it seems we still have some other issues. But this PR moves us in the right direction. 👍 I'm going to merge it then. |
At least we'll be able to test it then ))) |
@akloeckner |
I'll publish a pre-release in a few minutes. Also, I believe one of the actions creates a compiled js as an artifact. 🤔 |
🎉 This PR is included in version 0.12.2-dev.1 🎉 The release is available on GitHub release Your semantic-release bot 📦🚀 |
There should be one here:
|
After PR merged - became better, but a black indicator still shown: #1116 |
When using attributes for entity states, the line picks up the new state location and respects the color thresholds, however the legend indicators do not.
Current behaivour
New behaviour
This updates the
renderIndicator()
function to use the existinggetEntityState()
which checks if an attribute has been configured, otherwise it falls back to the entity state.