core: Scheduler UI doesn't show entries for Sunday
The problem
Checks: OS: macOS Ventura Browsers: Safari, Chrome Notes: Other days are handled correctly, the issue only happens with Sunday
I created a schedule helper through the UI and selected the same time slot for all days, during this process Sunday fails to show the correct range as any clicks on the browser window remove the selected time slots.
Saving the schedule works, as validated by attempting to save over the overlapping time slots and the error message confirms the time slot already exists. The schedule triggers correctly, but it is not editable/visible in the frontend.
-
Schedule with the time slots selected
-
Adding a test time slot to a time I previously added to the schedule
-
Error message for overlapping times in the schedule
Video 1
This video shows me attempting to create a schedule on Sunday at 12:00, the time disappears after I click “save”. When I go back to edit the helper the time slot is not visible. Attempting to add the same time slot results in overlapping error.
https://user-images.githubusercontent.com/2916156/201246891-8afbeb92-0673-4c75-aba4-16d0f9e9fe6c.mp4
Video 2
This video shows me selecting a time slot on Sunday, adding a second time slot on a different day and the Sunday selection disappears. I go back and select Sunday again, hit save and I receive an error for overlapping time slots.
https://user-images.githubusercontent.com/2916156/201246947-ac37426e-65b8-432b-9c9e-c2d6b05a543a.mp4
What version of Home Assistant Core has the issue?
Home Assistant 2022.11.2
What was the last working version of Home Assistant Core?
No response
What type of installation are you running?
Home Assistant OS
Integration causing the issue
schedule
Link to integration documentation on our website
https://www.home-assistant.io/integrations/schedule/
Diagnostics information
No response
Example YAML snippet
No response
Anything in the logs that might be useful for us?
Logger: homeassistant.components.websocket_api.http.connection
Source: components/websocket_api/connection.py:104
Integration: Home Assistant WebSocket API (documentation, issues)
First occurred: 7:51:18 PM (1 occurrences)
Last logged: 7:51:18 PM
[281472857607664] Error handling message: Overlapping times found in schedule for dictionary value @ data['sunday']. Got [{'from': '17:30:00', 'to': '18:00:00'}, {'from': '18:00:00', 'to': '22:30:00'}, {'from': '17:30', 'to': '18:00'}] (invalid_format) from 192.168.1.90 (Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/107.0.0.0 Safari/537.36)
Additional information
No response
About this issue
- Original URL
- State: closed
- Created 2 years ago
- Reactions: 8
- Comments: 15 (3 by maintainers)
Obvious Reproducible Defect here: When current day is “Sunday”, it only shows Sunday’s existing schedule When current day is not “Sunday”, it shows every day schedule except for Sunday
WIndows 11, Chrome 107.0.5304.107 (Official Build) (64-bit)
@matthewcky2k @SkyLined The config itself is stored in
.storage/schedule
, which you can access through the Terminal addon or with help of SSH from your desktop