Component sun in error

Hi,

I have an issue with the sun component.
I don’t know why but I have this error message

2018-10-08_193724

All worked find before … and I didn’t make any change …

homeassistant:
  # Name of the location where Home Assistant is running
  name: Home
  # Location required to calculate the time the sun rises and sets
  latitude: 49.60364
  longitude: 6.12545
  # Impacts weather/sunrise data (altitude above sea level in meters)
  elevation: 283
  # metric for Metric, imperial for Imperial
  unit_system: metric
  # Pick yours from here: http://en.wikipedia.org/wiki/List_of_tz_database_time_zones
  time_zone: Europe/Luxembourg
  # Customization file
  customize: !include customize.yaml

homeassistant:
  auth_providers:
   - type: homeassistant
   # Uncomment next line if you want to enable legacy API password support
   - type: legacy_api_password

# Enable the auth component
auth:

# Show links to resources in log and frontend
introduction:

# Enables the frontend
frontend:

# Enables configuration UI
config:

http:
  # Secrets are defined in the file secrets.yaml
  api_password: !secret http_password
  # Uncomment this if you are using SSL/TLS, running in Docker container, etc.
  # base_url: example.duckdns.org:8123

# Checks for available updates
# Note: This component will send some information about your system to
# the developers to assist with development of Home Assistant.
# For more information, please see:
# https://home-assistant.io/blog/2016/10/25/explaining-the-updater/
updater:
  # Optional, allows Home Assistant developers to focus on popular components.
  # include_used_components: true

# Discover some devices automatically
discovery:

# Allows you to issue voice commands from the frontend in enabled browsers
conversation:

recorder:

# Enables support for tracking state changes over time
history:

# View all events in a logbook
logbook:

# Enables a map showing the location of tracked devices
map:

# Track the sun
sun:

# Weather prediction
sensor:
  - platform: yr
  - platform: systemmonitor
    resources:
      - type: disk_use_percent
        arg: /home
      - type: memory_free
      - type: processor_use
      - type: process

You use 2 times the platform “homeassistant”. The second entry seems to overwrite the first entry.
In tried it in my configuration and got also the sun - error.

Just delete / comment the second line with “homeassistant”.

Thank you you’re right …
I deleted the second line with “homeassistant” and it works
Sorry for this poor question :persevere:

Unless you’re still on 0.76 you should remove these lines and let Home Assistant configure the auth providers according to the rest of your configuration.

Hi Tinkerer,

thank you I deleted those lines :slight_smile: