Customize error with proper indent

HA Config:
homeassistant:

Name of the location where Home Assistant is running

name: PersimmonPoint

Location required to calculate the time the sun rises and sets

latitude: ****************
longitude: ***************

Impacts weather/sunrise data

elevation: 13

C for Celsius, F for Fahrenheit

unit_system: imperial

Pick yours from here: http://en.wikipedia.org/wiki/List_of_tz_database_time_zones

time_zone: America/New_York
customize:

CLI:
sudo systemctl restart home-assistant.service

Log:
Nov 16 10:50:59 raspberrypi systemd[1]: Started Home Assistant.
Nov 16 10:51:01 raspberrypi hass[16115]: ERROR:homeassistant.bootstrap:Invalid config for [homeassistant]: Expected dictionary for dictionary value @ data[‘customize’]. Got None. (See /home/hass/.homeassistant/configuration.yaml:2)

If you have nothing below customize you should remove it or comment it out.

In the future please post your code blocks properly so your formatting is preserved - makes it easier to diagnose.

Simply highlight the code block and then press the preformatted text button in the editor as show below:

homeassistant:
  # Name of the location where Home Assistant is running
  name: PersimmonPoint
  # Location required to calculate the time the sun rises and sets
  latitude: ***********
  longitude: ***********
  # Impacts weather/sunrise data
  elevation: 13
  # C for Celsius, F for Fahrenheit
  unit_system: imperial
  # Pick yours from here: http://en.wikipedia.org/wiki/List_of_tz_database_time_zones
  time_zone: America/New_York
  customize:
      switch.linear_ws15z1_switch_5_0
         friendly_name:porch light
         icon:mdi:kettle

sudo systemctl restart home-assistant.service

Nov 16 13:24:08 raspberrypi systemd[1]: Starting Home Assistant...
Nov 16 13:24:08 raspberrypi systemd[1]: Started Home Assistant.
Nov 16 13:24:11 raspberrypi hass[16622]: ERROR:homeassistant.bootstrap:Invalid config for [homeassistant]: Expected dictionary for dictionary value @ data['customize']. Got 'switch.linear_ws15z1_switch_5_0 friendly_name:porch light icon:mdi:kettle'. (See /home/hass/.homeassistant/configuration.yaml:2).
Nov 16 13:24:11 raspberrypi hass[16622]: INFO:homeassistant.core:Bus:Handling <Event call_service[L]: service=create, service_data=title=Invalid config, message=The following components and platforms could not be set up:
Nov 16 13:24:11 raspberrypi hass[16622]: * [homeassistant](https://home-assistant.io/components/homeassistant/)
Nov 16 13:24:11 raspberrypi hass[16622]: Please check your config, notification_id=invalid_config, domain=persistent_notification, service_call_id=1976827888-1>
Nov 16 13:24:11 raspberrypi hass[16622]: Config directory: /home/hass/.homeassistant

My text showed correctly until posted

homeassistant:
**customize:
****switch------
******friendly----
******icon-----

Errors off using an Include as well:

homeassistant:
  # Name of the location where Home Assistant is running
  name: PersimmonPoint
  # Location required to calculate the time the sun rises and sets
  latitude: 39.04896
  longitude: -76.4347516
  # Impacts weather/sunrise data
  elevation: 13
  # C for Celsius, F for Fahrenheit
  unit_system: imperial
  # Pick yours from here: http://en.wikipedia.org/wiki/List_of_tz_database_time_zones
  time_zone: America/New_York
  customize: !include customize.yaml



02:11 raspberrypi systemd[1]: Started Home Assistant.
Nov 16 14:02:13 raspberrypi hass[17193]: ERROR:homeassistant.bootstrap:Invalid config for [homeassistant]: Expected dictionary for dictionary value @ data['customize']. Got 'switch.linear_ws15z1_switch_5_0 friendly_name:porch light icon:mdi:kettle'. (See /home/hass/.homeassistant/configuration.yaml:2).
Nov 16 14:02:13 raspberrypi hass[17193]: INFO:homeassistant.core:Bus:Handling <Event call_service[L]: domain=persistent_notification, service=create, service_call_id=1976696816-1, service_data=title=Invalid config, notification_id=invalid_config, message=The following components and platforms could not be set up:
Nov 16 14:02:13 raspberrypi hass[17193]: * [homeassistant](https://home-assistant.io/components/homeassistant/)
Nov 16 14:02:13 raspberrypi hass[17193]: Please check your config>
Nov 16 14:02:13 raspberrypi hass[17193]: Config directory: /home/hass/.homeassistant

Looks like there’s an error in your customize.yaml. I think we’ll need to see a snippet of that to help diagnose.
My first entry in my customize.yaml looks like this:

switch.garage_ceiling_switch_29_0:
  friendly_name: Garage Ceiling

“switch” starts at the left margin - no indentation.

I had friendly_name: “text”
icon:midi:kettle < removed this and it is working as an include. I’ll just keep using includes as I could not get it working in configuration.yaml

Thanks,

Bob

If you post a snippet, we can help you figure out what the issue is.
Did you have a space after icon: ? There should be a space after every colon.