Update worldclock component config_flow labels to match pre-defined format output (#125707)

update labels for pre-defined options

update labels for pre-defined options to match strftime's formatted output
This commit is contained in:
Joseph Chiocchi 2024-09-11 06:40:13 -05:00 committed by GitHub
parent 3c1860cca2
commit eb66a2f32f
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -28,11 +28,11 @@ TIME_STR_OPTIONS = [
SelectOptionDict(
value=DEFAULT_TIME_STR_FORMAT, label=f"14:05 ({DEFAULT_TIME_STR_FORMAT})"
),
SelectOptionDict(value="%I:%M %p", label="11:05 am (%I:%M %p)"),
SelectOptionDict(value="%I:%M %p", label="11:05 AM (%I:%M %p)"),
SelectOptionDict(value="%Y-%m-%d %H:%M", label="2024-01-01 14:05 (%Y-%m-%d %H:%M)"),
SelectOptionDict(
value="%a, %b %d, %Y %I:%M %p",
label="Monday, Jan 01, 2024 11:05 am (%a, %b %d, %Y %I:%M %p)",
label="Mon, Jan 01, 2024 11:05 AM (%a, %b %d, %Y %I:%M %p)",
),
]