I’m so sorry about my grumpy response. I hadn’t eaten all day as I was fighting with this and it came out in my response. My apologies.
I just needed to put that piece of code in the YAML in ESPHome. Ironically, the GitHub guy posted the exact same response a few minutes later.
It compiled properly, I was able to download the file, and all seems well now.
Thank you again for your help, and once again my apologies for the hangry response!