Errors in logifle?

I am getting a lot of these errors on my logfile:

2019-10-08 14:08:46 ERROR (SyncWorker_9) [homeassistant.util.yaml.loader] YAML file /home/homeassistant/.homeassistant/ui-lovelace.yaml contains duplicate key "type". Check lines 4591 and 4594.

Looking at the ui-lovelace.yaml those lines are related to a conditional card:

              - type: conditional
                conditions:
                  - entity: media_player.studio
                    state: 'playing'
                card:
                  type: custom:mini-media-player        
                  entity: media_player.studio
                  artwork: none
                  hide:
                    icon: true

I don’t see any error in this card as i am following the docs about it.
So why i get those errors?

Can you try adding a dash before the second “type” and see if it works.

- type: conditional
  conditions:
    - entity: media_player.studio
      state: 'playing'
  card:
    - type: custom:mini-media-player        
      entity: media_player.studio
      artwork: none
      hide:
        icon: true

No, it gives me error.

No card type configured.
[
  {
    "type": "custom:mini-media-player",
    "entity": "media_player.studio",
    "artwork": "none",
    "hide": {
      "icon": true
    }
  }
]

Hmm something seems strange about the error message. It says line 4591 and 4594, if I assume that the line “-type: conditional” is line 4591 then the line 4594 would be “card:” Could you please check again if these are the exact lines mentioned in the error code?

Found it… there was a ‘type’ key doubled, but not at those position !!!

Strange, but glad that you figured it out.