Error In Mqtt Sensor documentation?

Getting error in mqtt sensor entity code from documentation.
Link to documentation: MQTT Sensor - Home Assistant

mqtt:
  - sensor:
      state_topic: "home/bedroom/temperature"

Error: Incorrect type : Expected “Object”

That’s a problem with the VSCode home assistant helper extension schema, not the documentation.

You can report it as a new issue here (if it has not already been reported):

Or submit a fix yourself: