I just installed the new update, and all is working well except this code. Checked breaking changes and could not find anything that applied. Do not know where to turn next.
Mine happens all the time.
I put the code on my sandbox lovelace page just for the one entity and played with it.
Removed quotes, changed spacing. The only thing that worked was commenting out both the type and secondary entity row.
Will wait for thomasloven to sort it out.
Hopefully soon.