Skip to content

Add possibility to extend the Home Assistant template engine#512

Merged
frenck merged 5 commits into
mainfrom
frenck-2023-1560
Dec 31, 2023
Merged

Add possibility to extend the Home Assistant template engine#512
frenck merged 5 commits into
mainfrom
frenck-2023-1560

Conversation

@frenck

@frenck frenck commented Dec 31, 2023

Copy link
Copy Markdown
Owner

Description

Add support for extending the Home Assistant template engine.

Motivation and Context

It would be cool if Spook could extend the Home Assistant template engine with custom functions/tests.

How has this been tested?

Screenshots (if appropriate):

image

fnmatch is not an existing template method in Home Assistant, but injected by Spook.

Types of changes

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to not work as expected)
  • Other

Checklist

  • My code follows the code style of this project.
  • My change requires a change to the documentation.
  • I have updated the documentation accordingly.

@frenck frenck changed the title Ensure template environments exists Add possibility to extend the Home Assistant template engine Dec 31, 2023
@frenck frenck added the new-feature New features or options. label Dec 31, 2023
@frenck frenck marked this pull request as ready for review December 31, 2023 14:21
@sonarqubecloud

Copy link
Copy Markdown

Quality Gate Passed Quality Gate passed

The SonarCloud Quality Gate passed, but some issues were introduced.

2 New issues
0 Security Hotspots
No data about Coverage
0.0% Duplication on New Code

See analysis details on SonarCloud

@frenck frenck merged commit d61a456 into main Dec 31, 2023
@frenck frenck deleted the frenck-2023-1560 branch December 31, 2023 16:41
@frenck frenck mentioned this pull request Dec 31, 2023
17 tasks
@teskanoo

Copy link
Copy Markdown

You are just AWESOME Frenk - Thanks you so much for Sppok (I do not use it and of course never would :) )

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

new-feature New features or options.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants