Updating a number of my configs to make compliant with many of the newer formats. Below is an issue I am having with one of my older value templates.
template:
- sensors:
####
## OCTOPRINT
- name: "OctoPrint Actual Bed Temp (Celsius)"
unit_of_measurement: "C°"
state: >-
{% set bed_temp = states('sensor.octoprint_bed_temperature') | int %}
{% set bed_temp = (bed_temp-32)/1.8 | round(1) %}
{{ bed_temp }}
The error I am seeing is:
Logger: homeassistant.config
Source: config.py:820
First occurred: 11:02:51 AM (1 occurrences)
Last logged: 11:02:51 AM
Invalid config for [template]: expected dictionary for dictionary value @ data['sensors']. Got [OrderedDict([('name', 'OctoPrint Actual Bed Temp (Celsius)'), ('unit_of_measurement', 'C°'), ('state', "{% set bed_temp = states('sensor.octoprint_bed_temperature') | int %} {% set bed_temp = (bed_temp-32)/1.8 | round(1) %} {{ bed_temp }}")]), OrderedDict([('name', 'OctoPrint Actual Extruder Temp (Celsius)'), ('unit_of_measurement', 'C°'), ('state', "{% set tool_temp = states('sensor.octoprint_tool_0_temperature') | int %} {% set tool_temp = (tool_temp-32)/1.8 | round(1) %} {{ tool_temp }}".... (See /config/templates.yaml, line 4).