Issue with homeassistant.service in recet versions

There was a breaking change mentioned in the HA July release notes. It says prior ESPHome devices shouldn’t be impacted but sure looks like yours was messed up.