Github Copilot - current syntax

Github Copilot is great for building any kind of HA automation, service, etc. including Lovelace UIs. UNFORTUNATELY, the syntax it uses is painfully old and everything needs to be hand-upgraded.
I’m sure HA YAML isn’t on their top 10 list to support, but is anyone from Home Assistant working with the Github folks to keep this more current (or could they :slight_smile: )?

Can you put that in units of measurement we are all familiar with? Have you asked it what the most recent version of Home Assistant syntax it’s familiar with?

Yes - no clear answer - its AI :slight_smile:

Copilot
Copilot is designed to assist with a wide range of Home Assistant versions, but it may not always be up-to-date with the latest syntax and features. As of now, there have been some discussions in the Home Assistant community about Copilot using older syntax that might require manual updates1.
If you’re working with the latest versions of Home Assistant, such as the 2024.6 release, you might need to manually adjust some of the code suggestions provided by Copilot to match the current syntax and features2
Is there a specific task or feature you’re working on in Home Assistant that you need help with? :blush:

and than it provides links to the discusion e.g. here.
So yes its producing outdated syntax

when you ask why:

The reason Copilot might not always be up-to-date with the latest syntax and features for Home Assistant is due to the rapid pace of updates and changes in the Home Assistant platform. Keeping up with every new release and syntax change can be challenging, especially since Home Assistant frequently updates its YAML configurations and features21
Additionally, the focus of Copilot’s development might be on broader use cases and more widely used programming languages, which can sometimes lead to delays in updating support for specific platforms like Home Assistant2
If you encounter any outdated syntax or features, you might need to manually adjust the code suggestions provided by Copilot to match the current Home Assistant documentation1

:slight_smile:

Well, like people it gives different answers to different people:
image