Error in Log:
Die Aktion homeassistant/restart konnte nicht ausgeführt werden. The system cannot restart because the configuration is not valid: Error loading /config/configuration.yaml: mapping values are not allowed here in “/config/sensors.yaml”, line 2, column 12
Also: “sensor” instead of “sensors”.
(Unrelated) suggest to use a modern syntax for template sensors, this one is called “legacy” and has some limitations (although allows to set friendly_name in a template - but may be it is not needed for you).
In UI and not templated.
Ofc I can set name=“Some pretty name” and in yaml - but I prefer to set entity_id myself (which is different from friendly name) and in yaml. And I do not want to set unique_id only for setting friendly name or replacing entity_id. Currently with the modern syntax to set a static (not templated dynamic) friendly name I use customize.