Binary_sensor.yaml messages vscode?

Hi. Do you know why these messages are appearing? Thank

Yes, it is the first breaking change listed for the 2022.6 release (please read the release notes before updating):

https://www.home-assistant.io/blog/2022/06/01/release-20226/#breaking-changes