Bad indentation of a mapping entry (82:16)

Hi guys, can someone help here please?
I have the following code working in Developer tools template but when i enter it into my sensor.yaml i get the following
bad indentation of a mapping entry (82:16)

 79 |   sensors:
 80 |     energy_total:
 81 |       friendly_name:'Total Solar'
 82 |       entity_id:
---------------------^
 83 |         - sensor.solar1_daily

My entry in my sensor.yaml is

- platform: template
  sensors:
    energy_total:
      friendly_name:'Total Solar'
      entity_id:
        - sensor.solar1_daily
        - sensor.solar2_daily
      value_template: "{{ (states('sensor.solar1_daily')|float + states('sensor.solar2_daily')|float)|round(3) }}"
      unit_of_measurement: "kWh"

You are missing a space after friendly_name: and before 'Total Solar'

There are other issues.

This has not been a valid option for quite some time. Remove it.

In fact you should not be using that old sensor format for new template sensors. Use the new format:

configuration.yaml (not sensors.yaml)

template:
  - sensor:
      - name: 'Total Solar'
        unit_of_measurement: "kWh"
        device_class: energy
        state_class: total_increasing # or just "total" if this can decrease
        state: "{{ (states('sensor.solar1_daily')|float + states('sensor.solar2_daily')|float)|round(3) }}"
        availability: "{{ has_value('sensor.solar1_daily') and has_value('sensor.solar2_daily') }}"

The availability template is important for preventing erroneous readings in your energy dashboard. See (third time I have mentioned this today): How can I merge the values of 2 meters into 1 and use them in the energy dashboard? - #3 by tom_l