DennisB66 / Home-Assistant

Various scripts for Home Assistant (like blueprints).

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Delay selector on UI presents AM/PM selection when 12 hour time configuration

tuxhobo opened this issue · comments

The AM/PM selection is presented because the selector is coded as time: {} which is "time of day" format and because my HA time format is 12 hour. I'll guess that the AM/PM selection shall not show up with 24 hour time format configuration.

I tested the selector with PM set and 01:15 and it results in 47700 seconds delay which is 13:15. Also, tested the selector set to 00:15 AM and the timer result is 12:15. (Cannot set zero hours)

A simple fix is to delete the time selector in rows 16 & 17.

The selector may be improved if coded as a number of minutes and a max range of 1440 (24 x 60). Also propose that an increment of 5 minutes is sufficient granularity.