Heads up: 2023.6 longer has persistent notifications in states: what to do?

that must be a newish ‘feature’. I’ve have quite a few of them, and never saw any issue at all in that regard.
Ill keep an eye on these, and see if anything can be done

talking about that Dashboard yaml:

type: entities
title: Notification dashboard
show_header_toggle: false
state_color: true
card_mod:
  class: class-header-margin
entities:

  - entity: binary_sensor.persistent_notifications
    secondary_info: last-changed
  - entity: sensor.persistent_notifications_count
    secondary_info: last-changed
    format: relative
  - entity: sensor.persistent_notifications
    secondary_info: last-changed
  - type: custom:hui-element
    card_type: conditional
    conditions:
      - entity: binary_sensor.persistent_notifications
        state: 'on'
    card:
      type: custom:hui-element
      card_type: markdown
      card_mod:
        style: |
          ha-card {
            box-shadow: none;
            margin: 0px -16px;
          }
      content: >
        {% set count = states('sensor.persistent_notifications_count') %}
        ### {{count}} Notification{{'' if count == '1' else 's'}}:

        {% for m in state_attr('sensor.persistent_notifications','notifications') if m %}

        **{{m.title}}**{{'\n'}}
        *{{m.message}}*{{'\n'}}
        {{m.id}}{{'\n'}}
        {% endfor %}

  - type: conditional
    conditions:
      - entity: binary_sensor.persistent_notifications
        state: 'on'
    row:
      entity: script.dismiss_all_persistent_notifications #script.dismiss_all #former python
      secondary_info: last-triggered
      action_name: Wis

I could drop the bottom 2 conditional in 1 and use an entities card + plus a nice divider, but then I’d have to mod that again to not show borders/shadows etc. this was the lazy solution.

here’s the other:

  - type: custom:hui-element
    card_type: conditional
    conditions:
      - entity: binary_sensor.persistent_notifications
        state: 'on'
    card:
      type: entities
      card_mod:
        style: |
          ha-card {
            box-shadow: none;
            margin: 0px -16px;
          }
      entities:
        - type: divider
        - type: custom:hui-element
          card_type: markdown
          card_mod:
            style: |
              ha-card {
                box-shadow: none;
                margin: 0px -16px;
              }
          content: >
            {% set count = states('sensor.persistent_notifications_count') %}
            ### {{count}} Notification{{'' if count == '1' else 's'}}:

            {% for m in state_attr('sensor.persistent_notifications','notifications') if m %}

            **{{m.title}}**{{'\n'}}
            *{{m.message}}*{{'\n'}}
            {{m.id}}{{'\n'}}
            {% endfor %}

        - entity: script.dismiss_all_persistent_notifications #script.dismiss_all #former python
          secondary_info: last-triggered
          action_name: Wis

couldn’t resist and it seems less condition checking for the Frontend, so maybe just a bit more efficient