convert_active

convert_active(value: str) str[source]

Normalise an ‘active’ schedule value for storage.

Accepts the new pipe-separated hour format, legacy hyphen-separated day format, ON/OFF variants, and empty strings.