90.0 broke my entity_picture templates

I monitor some disk temperatures, and show them with either blue or red “icons” (jpgs made from MDI icons). An input_number sets the max temp before showing red. This worked properly until 90.0. The controlling logic is in customize.yaml like this (but indented properly):

sensor.c2750d4i_ada2:
templates:
entity_picture: >-
if (parseInt(state) <= parseInt(entities[‘input_number.max_zvol’].state)) {return ‘/local/icons/harddisk-40.png’;} else {return ‘/local/icons/harddisk-red-40.png’;}

I recognize that using javascript templates like this depends on the home-assistant-custom-ui by andrey-git, and there may be an issue with it in 90.0.

Any suggestions for fixing or replacing this?

Resolved. Previously, entity_picture was overriding icon. That seems to have changed in 90.

in ui-lovelace.yaml I removed “icon: mdi:harddisk” from
- entity: sensor.c2750d4i_ada2
name: ada2
icon: mdi:harddisk
and the entity_picture templates again work.

Tested problem and resolution in both entities and glance cards, so may be systemic.