Develop and rebuild template sensor to python_script

you mean the card_mod style doesn’t work? If not we have to find out how to get it to work (again), style the fold_entity_row header…it did before… see: How to style the fold-entity-row head? - #9 by Mariusthvdb

about the alignment: as said, in my case, all is well (aligned to the left side of the top thumbs, except for the header alignement, which is shifted too far to the right:

yours are all shifted right :wink:

btw, I’ve taken the card out of the top entities card, which allows for one less card_mod too:

type: custom:hui-element
card_type: entities
title: Unavailable Unknown None
show_header_toggle: false
style: |
  ha-card {
    box-shadow: none;
  }
  .card-header {color: var(--primary-color);font-weight: bold;}
 # .:
 # "#states > div:nth-child(n+1) > fold-entity-row":
 #   $:
 #    "#head > entity-row-maker > hui-section-row":
 #      $: |
 #        div.divider {
 #          height: 0px;
 #        }
 #        div.label {
 #          font-weight: bold;
 #        }
entities:
  - sensor.uun_ordered
  - entity: script.update_entities_uun
    secondary_info: last-triggered
    action_name: Update