You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I see most ints have been give default values but some have not and HA is catching them
2022-01-30 02:26:24 WARNING (MainThread) [homeassistant.helpers.template] Template warning: 'int' got invalid input 'unavailable' when rendering template
'{%- set temp = temperature|int -%} {%- if temp <= thermometer_quarter_threshold|int -%}
{%- set color = thermometer_empty_color -%}
{%- elif temp < thermometer_half_threshold|int -%}
{%- set color = thermometer_quarter_color -%}
{%- elif temp < thermometer_three_quarter_threshold|int -%}
{%- set color = thermometer_half_color -%}
{%- elif temp < thermometer_full_threshold|int -%}
{%- set color = thermometer_three_quarter_color -%}
{%- else -%}
{%- set color = thermometer_full_color -%}
{%- endif -%} {%- if color|int < 0 -%}
{{- selectedfg -}}
{%- else -%}
{{- color -}}
{%- endif -%}' but no default was specified. Currently 'int' will return '0', however this template will fail to render in Home Assistant core 2022.1
The text was updated successfully, but these errors were encountered:
I see most
int
s have been give default values but some have not and HA is catching themThe text was updated successfully, but these errors were encountered: