Errors when adding platform: season

According to https://www.home-assistant.io/integrations/season/ its just so easy to add seasons!

Except, its not. adding
sensor:

  • platform: season

causes errors. Duplicate mapping key if i add it below the current sensor:
bad indentation of a mapping entry at line 6 if i remove the sensor: ad put the - platform: season below the current sensor: line. If i add it as simply platform: season below my current sensor line, i get Integration error: platform - Integration ‘platform’ not found.

below is my current config yaml

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

default_config:

sensor: !include sensors.yaml
template: !include template.yaml

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

homeassistant:
packages: !include_dir_named packages

put it in your sensors.yaml file like this:

  - platform: season

leave off the “sensor:” line and make sure the “-” at the beginning is indented the same as the rest of those in the sensors.yaml file.

**- platform: some_other_platform

**- platform: season

* = space
1 Like