Skip to content

1.3.0 - Parity With Backend Templates

Latest
Compare
Choose a tag to compare
@Nerwyn Nerwyn released this 09 Oct 00:52
· 3 commits to main since this release

Parity With Backend Templates

This release adds almost all of the template extensions described in the Home Assistant templating docs. This includes not only functions, but filters and tests as well.

It also implements a Pythonic datetime module! You'll have access to dates, times, datetimes and timedeltas for use in your templates.

See the README for more details on the available extensions, as some functions vary a little from their Home Assistant jinja2 backend template versions.

Fixes

  • Add optional arguments rounded and with_unit to states.
  • Remove array comparison from is_state_attr.
  • Add nullish checks to some function inputs to prevent nullish values from being compared.

Full Changelog: 1.2.3...1.3.0