In my case there is a difference:
- Here no differences:
homeassistant:
customize_glob:
sensor.battery_*:
templates:
icon_color: >
if (['unavailable', 'unknown'].includes(state)) return 'brown';
if (state <= Number(entities['input_number.battery_level_critical'].state)) return 'red';
if (state <= Number(entities['input_number.battery_level_warning'].state)) return 'rgb(250,218,67)';
return 'green';
last_updated: return entity.last_updated;
hide_attributes:
- templates
- icon_color
- Here there is a difference:
homeassistant:
customize_glob:
sensor.battery_*:
templates:
icon_color: >
if (['unavailable', 'unknown'].includes(state)) return 'brown';
if (state <= Number(entities['input_number.battery_level_critical'].state)) return 'red';
if (state <= Number(entities['input_number.battery_level_warning'].state)) return 'rgb(250,218,67)';
return 'green';
hide_attributes:
- templates
- icon_color
So, only adding "last_updated: return entity.last_updated;"
removes the differences.
OK, could it be a cashing issues? I cleared the browser’s cashe, restarted HA & tried to reproduce the same condition - now I do NOT see these differences.