Sensor card update to copy fill feature#4745
Merged
Merged
Conversation
Contributor
Author
balloob
reviewed
Feb 4, 2020
bramkragten
reviewed
Feb 4, 2020
Comment on lines
-94
to
+110
| history.forEach((item, i) => getCoords(item, i, 0, detail)); | ||
| for (let i = 0; i < history.length; i += 1) { | ||
| getCoords(history[i], i, 0, detail); | ||
| } |
Contributor
Author
There was a problem hiding this comment.
This is for when there isn't enough history to fill the hours requested. The previous method would start the line in the middle of the card if there were only 12 hours of data when 24 were requested
Member
There was a problem hiding this comment.
Might be me, but I don't see a difference in what it does, just a more difficult way to write the same ;-)
Contributor
Author
Contributor
Author
There was a problem hiding this comment.
Therefore i starts at ex. 14. Meaning the first X value is 14 * xRatio
Member
|
Please don't force push after reviews have started, it prevents us from spotting the changes. |
balloob
approved these changes
Feb 5, 2020
Member
|
🎉 🐬 🎉 🐬 🎉 🐬 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.


Proposed change
This PR updates the Core Sensor card to mimic the fill feature of the Custom Graph Card
Type of change
Example configuration
Additional information
PR also moves the icon to the right side. Updates some CSS and CSS classes
Checklist
If user exposed functionality or configuration variables are added/changed: