Invalid config for [sensor]: expected a dictionary. Got

Hello,
This is my first issue that I write on the forum so don’t be to harsh about my formating

I’ve run into a problem that I can’t figure it out. I didn’t change nothing in the configuration.yaml but whenever I try to check configuration for restart I get this error message


invalid config for [sensor]: expected a dictionary. Got {‘default_config’: {}, ‘frontend’: {‘themes’: {‘vintage’: {‘primary-font-family’: ‘Lucida Console’, ‘turmeric-color’: ‘#DEB853’, ‘light-turmeric-color’: ‘#E2D9A2’, ‘slate-color’: ‘#0A373A’, ‘light-slate-color’: ‘#789F8A’, ‘maroon-color’: ‘#862715’, ‘app-header-text-color’: ‘#fafcfb’, ‘primary-color’: ‘var(–slate-color)’, ‘light-primary-color’: ‘var(–light-turmeric-color)’, ‘dark-primary-color’: ‘var(–maroon-color)’, ‘primary-background-color’: ‘var(–light-turmeric-color)’, 'secondary-back… (See ?, line ?).

I’ve tried to remove the custom themes, but then the error moves to the automation.yaml and then to script.yaml

My configuration.yaml has this setup:

# Configure a default setup of Home Assistant (frontend, api, etc)

default_config:

# Enable Themes

frontend:

  themes: !include_dir_merge_named themes

# Text to speech

tts:

  - platform: google_translate

group: !include groups.yaml

automation: !include automations.yaml

script: !include scripts.yaml

scene: !include scenes.yaml

# Include in HA customize file

homeassistant:

  customize: !include customize.yaml

  packages: !include_dir_named integrations

  auth_providers:

    - type: homeassistant

    - type: trusted_networks

      trusted_networks:

        - 192.168.x.x/24

        - 10.1.xx.x/24

      trusted_users:

        192.168.x.xx

  external_url: "https://xxxxxsfdas.ui.nabu.casa"

  allowlist_external_dirs:

    - "/config"

Did you recently create some template sensors? Then check this file(s).