Can't change icon on snapshot_backup

I have used the “ Google Drive Backup” add-on and with it comes the snapshot_backup entity.
Now I want to replace the icon but it just wont work.

        icon: mdi:cloud-upload
        icon_color: if (state == 'backed_up') return 'rgb(0,255,0)'; 
                    else return 'rgb(255,0,0)';

The icon does not change and the color is not changed either.

If I go to the UI customizations I can see the template there.

(I have tested with a different icon here but it still did not work)

But it won’t change in the lovelace.
I have restarted several times.