Releases: Mariusthvdb/custom-ui
20220419
Follow up on 20220416.
BREAKING CHANGE !!!
- State templating is no longer supported. Please see the README for more information.
This change will not "break" the UI, but state templates will not work anymore and there will be an error in the console if you are using that.
What's Changed
- Remove state templating by @bratanon in #54
- Update required homeassistant minimum version by @bratanon in #55
- Set info in config/info again by @bratanon in #57
- Docs cleanup by @bratanon in #56
Full Changelog: 2022.4...2022041
fix for 2022.4
new and better readable code by @bratanon Thank you very much!
test release for 2022.4
posting this as a pre-release since @bratanon created this, but mentioned it not to work (reliably). See: #51
My initial testing does seem to indicate succes, so I'd be glad if people could test this.
homeassistant:
customize:
input_boolean.test:
package: Test
templates:
icon: >
return (state === 'on') ? 'mdi:test-tube' : 'mdi:test-tube-off';
icon_color: >
return (state === 'on') ? 'gold' : 'green';
input_number.test_number:
templates:
icon_color: >
if (state == 0) return 'white';
if (state == 10) return 'yellow';
if (state == 20) return 'brown';
if (state == 30) return 'navy';
if (state == 40) return 'lightblue';
if (state == 50) return 'green';
if (state == 60) return 'orange';
if (state == 70) return 'purple';
if (state == 80) return 'black';
if (state == 90) return 'gold';
return 'red';
Full Changelog: 2021053...20220417-beta
Update for HA 2021.6
mitigate the changes that HA 2021.6 brings using the new more-info attributes dropdown box.
-
changed the UpdateMoreInfo() event to 'expanded-changed'
-
added logic to only update on expanding attribute-panel
-
fixes the more-info on mini-graph-card
Note:
when the hide_attributes:
option results in no attributes to show, HA still will show the attributes dropdown box..
maybe that can be overridden in a future version.
Had huge help in the Discord #beta channel and DM from the core/frontend dev's. @spacegaier did an all in extra effort. Much appreciated!!
reduced code
After this release, there is probably not much more we can do to shrink the resource.
Please test, and report if you have issues.
remove context aware on Devices and Group
We still had a lot of code that was no longer functional in Lovelace, like the context aware customizations on Devices and Group membership.
further reduced code and Babelized
Further reduced code and Babel.io had a look at it
This has been running as beta for a while now, so time seems ready for a next release.
fix Invalid Date
this fixes the Invalid Date that shows in developer-tools/state
Minimize code even further
Final code minimization for now. Has been stable for a full day on 3 instances, with maxed out customizations. Please try and see if this works for you installs.
stop support for HA pre 2020 numbering
and further reduce code.
Please be careful using this. Though it won't harm your system in anyway, it is nice to have a back up of the previous version around, so you can switch easily.
Common practice: Backup and use diligently...