I do this but in a slightly different way. I go here Material Design Icons and click on the actual icon I want (not the code), it copies it to clipboard.
Then, I paste in the glyphs list, it looks like this:
- file: 'materialdesignicons-webfont.ttf'
id: icon_font_20
size: 20
glyphs: [
"", # mdi-wifi
"", # mdi-motion-sensor
"", # mdi-door-open
"", # mdi-lightbulb
"" # mdi-garage-open
]
Thanks to @makai: