Change scope of imports and some variables for macros

This commit is contained in:
2023-06-02 13:44:33 -04:00
parent d23545d055
commit 5e2bd6d80d
3 changed files with 8 additions and 27 deletions

View File

@ -1,6 +1,7 @@
{% macro weatherReport(type,method,time) %}
{% from 'time.jinja' import ct %}
{% set ct = ct() | int %}
{% macro weatherReport(type,method,time) %}
{% set time = time|default('day') %}
{% if method == 'text' %}
{% if type in ['current','full'] %}