mirror of
https://github.com/home-assistant/core.git
synced 2025-05-20 05:49:15 +00:00

* Add a check to verify if there is a passage Late in the evening and at night, there can be no passages anymore, so check it to avoid an unnecessary exception * One passage is enough! Requesting minimum 2 passages was an error due to counting from 1 and not zero * Invert check and put it out of the try-catch code Adding also the KeyError in the log message * Clean up * Putting comment in the correct python syntax * Clean up Co-authored-by: Martin Hjelmare <marhje52@gmail.com>