How to: Change core device (tracker) name

I can’t imagine there isn’t a topic already regarding this subject, but I couldn’t find it.

In my know devices I’ve got the following line:

879c2gf9dy1b:
  hide_if_away: false
  dev_id: iphone_van_rick
  icon: mdi:cellphone
  mac: x:xx:xx:xx:xx:xx
  name: iphone_x_rick
  picture:
  track: true
  vendor: Apple, Inc.

In the states screen it shows exactly like it’s supposed to. device_tracker.879c2gf9dy1b
(i’ve changed the ID / mac for security)

However when I change it, it doesn’t work like I want to.

iphone_x_rick:
  hide_if_away: false
  dev_id: iphone_van_rick
  icon: mdi:cellphone
  mac: x:xx:xx:xx:xx:xx
  name: iphone_x_rick
  picture:
  track: true
  vendor: Apple, Inc.

What happens is that the know devices adds another block with

 879c2gf9dy1b:
  hide_if_away: false
  icon:
  mac: x:xx:xx:xx:xx:xx
  name: 879c2gf9dy1b
  picture:
  track: true

I’m getting the following error

title: Invalid config
message: The following components and platforms could not be set up:

 - [iphone-x-rick](https://home-assistant.io/components/iphone_x_rick/)

Please check your config.

What am I doing wrong? I would like to change the name of all of my devices to keep everything a bit organized.