fix: stop labelling a counted schedule as a one-off (#29261)

The schedule label treated any rule whose text contained COUNT=1 as a single run, so counts such as 10, 12 and 14 were shown as "Once" together with the date of the first run, on the automations list and on the automation page alike. The label now matches a count of exactly one.

This covers the two places that render the label. The schedule editor reads the count the same way and changes separately. Rules that carry a start date still fall through to the raw rule text, exactly as they already did without a count; that parsing gap changes separately too.

Verified in a browser against the same build without these lines: ten ordinary schedules render identically in both places, and a genuine single-run schedule is still labelled as one.
This commit is contained in:
Classic298 2026-08-31 07:08:01 +02:00 committed by GitHub
parent fd679e1dac
commit 1976387808
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

Diff content is not available