"Property serial_number is not allowed" on mqtt sensor

Did something recently change in yaml schema definition? I see following squigglies now in vscode (private information redacted):

I can reload hassio fine, and serial number does show correctly despite vscode showing errors

Also, it references http://schemas.home-assistant.io/integration-homeassistant-packages , but I can not find anything at that URL.

Hi galets,

MQTT - Home Assistant.
‘Discovery Payload’ section in the Docs has lists of all the available tags in the schema for MQTT.

There’s an example, where serial_number and hw_version are explicitly present:

image

Which tells me something is off with vscode. Also, I don’t recall seeing any error squigglies previously, so something seems to have changed. I vaguely recall there was a recent update to vscode, wonder if that’s what caused the issue

I filed False errors are shown · Issue #883 · hassio-addons/addon-vscode · GitHub

Well what you have in the picture

doesn’t look anything like the example you posted.

I suggest looking for differences and matching the one you found…