-
Notifications
You must be signed in to change notification settings - Fork 265
fix: Migrate to ha-spinner #1234
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
Changes from 14 commits
d389885
3c48ea2
901b854
2e0d842
7b7b16c
41d737c
c73a295
6e739ab
359c8be
e6d5d31
5c59030
30220ee
838a44c
13bf9a1
553ecf2
582b2c9
64f62e2
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -27,8 +27,13 @@ const log = (message) => { | |
| console.warn('mini-graph-card: ', message); | ||
| }; | ||
|
|
||
| const isPre2025_5 = hass => hass | ||
|
Collaborator
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. This will be false for things like But it will be complicated and we'll be starting to support old versions. Considering this, I think, we should take the decision to just support the most recent version. At least actively.
Collaborator
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. You are right, the whole function must be revised. |
||
| && Number(hass.config.version.split('.')[0]) <= 2025 | ||
| && Number(hass.config.version.split('.')[1]) < 5; | ||
|
|
||
| export { | ||
| getMin, getAvg, getMax, getTime, getMilli, compress, decompress, log, | ||
| getFirstDefinedItem, | ||
| compareArray, | ||
| isPre2025_5, | ||
| }; | ||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm wondering if we really need to make this distinction. Couldn't we just put both tags in the card. Only one will be shown, because the other is not defined?
Or we wait another month and only insert the new spinner?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Seems that currently only one spinner (the latest one) is available in HA. So, see no need to wait a month.