World Air Quality Index fail in 0.39.1

World Air Quality Index is not working anymore after I upgraded to 0.39.1. This is what I have in configuration…

- platform: waqi
    token: !secret waqi_token
  locations:
    - XXXX

This is the error I got…

ERROR (Thread-1) [homeassistant.util.yaml] mapping values are not allowed here
  in "/home/pi/.homeassistant/sensors/waqi.yaml", line 2, column 10

looks like it needs to be:

- platform: waqi
  token: !secret waqi_token
  locations:
    - XXXX
1 Like

Looks like the documentation on github shows up correctly?

Thanks. It works.

I was following https://home-assistant.io/components/sensor.waqi/ and it seems the indentation for token is wrong.