Looks like I was impatient and topic should indeed have been /homeassistant
.
I kept seeing the errors until the old script was stopped and the new one restarted by the cron job an hour later.
Once that job triggered, there wasn’t a single error in my logs and sensor updates are coming in just fine even after a restart. Thanks once again @PatriceL !