v10.5.0
This release is a minor one and doesn't bring any breaking change. It updates the package home-assistant-javascript-templates which has a new variable available in its latest version.
lang variable
This property returns the language that the logged user has configured in their profile. Any template using this variable will be re-evaluated every time that the user changes their language in the user profile settings.
For example, the next code will make the title to be translated if the selected language is English, Spanish or Dutch but if the language is not one of these three, then it will return the default title string.
js_variables:
title:
en: My Home
es: Mi Casa
nl: Mijn Huis
title: '[[[ return title[lang] ?? 'Home Assistant'; ]]]'🚀 Features
- Update home-assistant-javascript-templates package
- PR: #453 by @elchininet
🧩 Dependencies
- Solve on-headers vulnerability
- PR: #447 by @elchininet
- [Dependencies]: Bump the dependencies-dev group with 3 updates
- PR: #449 by @dependabot[bot]
- [Dependencies]: Bump the dependencies-dev group with 5 updates
- PR: #451 by @dependabot[bot]
- Update home-assistant-javascript-templates package
- PR: #453 by @elchininet
📝 Documentation
- Add a statement to the important notes of the HACS installation method
- PR: #448 by @elchininet