How are you keeping your device yaml config files formatting up to date?

I’ve noticed in the last 6-8 months I have been using HA and ESPHome, that the formatting of the device yaml files has changed some.

It varies based on the device, for instance, the new device base installs added a “Friendly Name” and went to an encryption key.

Whereas the author of the Emporia Vue Energy Monitoring code I use made a couple of iterative changes and then recently completely refactored the entire code layout to match more modern HA standards.

The practical side of me says “if it isn’t broke don’t fix it”, but my OCD tendencies aren’t fond of the progressively increasing lack of formatting consistency.

I can probably sync my energy monitoring config with the author’s GitHub repo, but what is the preferred way to keep my other configurations up to date with the base ESPHome format without manually editing them all every time something changes?

Read the changelog for each release. Make the changes (manually). There is no other way.