Help: Custom card via HACS won't load

I installed a custom card via HACS
It copied the files to

config\www\community\lovelace-xiaomi-vacuum-card\xiaomi-vacuum-card.js
config\www\community\lovelace-xiaomi-vacuum-card\xiaomi-vacuum-card.js.gz

I tried various resource URL but I can’t get the custom card to work.
This is my very first attempt to use a custom card.

System:
Home Assistant in Docker on Ubuntu.

Reference:
Custom Card GitHub Page
HACS Plugin Instructions

Solved:

Correct syntax:

type: 'custom:xiaomi-vacuum-card'
entity: vacuum.vacuum

Incorrect Syntax:

- type: 'custom:xiaomi-vacuum-card'
entity: vacuum.vacuum