Configuration.yaml contains duplicate key "ios"

Greetings!

I have recently started seeing this error:

configuration.yaml contains duplicate key "ios". Check lines 30 and 50.

In my configuration, I have:

ios: !include push_ios.yaml for push notifications

and

ios: for manually loading the component.

As far as I understand, I need both of these but HomeAssistant does not like it.

Can I just ignore this warning or is there a better way? I could place the contents of push_ios.yaml inside the configuration file but prefer to keep things separate.

Thank you.

Is suspect it is just a matter of removing ios: from your file and realigning the contents.

e.g.

ios: !include push_ios.yaml

push_ios.yaml file contents:

push:
    categories:
      - name: Alarm
        identifier: 'alarm'
        actions:
          - identifier: 'SOUND_ALARM'
            title: 'Sound Alarm'
            activationMode: 'background'
            authenticationRequired: yes
            destructive: yes
            behavior: 'default'
          - identifier: 'SILENCE_ALARM'
            title: 'Silence Alarm'
            activationMode: 'background'
            authenticationRequired: yes
            destructive: no
            behavior: 'textInput'
            textInputButtonTitle: 'Silencio!'
            textInputPlaceholder: 'Placeholder'
2 Likes