Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Application crashes if you write the time with dot instead of colon #177

Open
Manseiler opened this issue Dec 20, 2024 · 2 comments
Open
Assignees
Labels
enhancement New feature or request

Comments

@Manseiler
Copy link

Hello
I was so happy with this integration,,, manaing maily cliamte and switches.. , so well done and simple

Since days I am not able to run..
Always never ending starting..., or crashing or whtever
I already spent som mch time to solve (re-installing, new building etc..)
with 12.0 and 12.4 HA versions, all tried
but not solution found yet..
I am on the verge to make a handmade automations , which would be a pity..
Suppport more then welcome
Manfred

if 0 <= int(hm[0]) < 24 and 0 <= int(hm[1]) < 60:

ValueError: invalid literal for int() with base 10: '23.00'
[07:54:01] WARNING: Scheduler process crashed...
[07:54:01] INFO: Restarting...
[07:54:01] INFO: Starting service.d [Scheduler]
[07:54:01] INFO: Running scheduler.sh
[2024-12-20 07:54:02] STATUS: Starting scheduler
Traceback (most recent call last):
File "/simplescheduler/scheduler.py", line 95, in
event_time = main.evaluate_event_time(t, sunrise, sunset)
File "/simplescheduler/main.py", line 823, in evaluate_event_time
if 0 <= int(hm[0]) < 24 and 0 <= int(hm[1]) < 60:
ValueError: invalid literal for int() with base 10: '23.00'
[07:55:00] WARNING: Scheduler process crashed...
[07:55:00] INFO: Restarting...
[07:55:00] INFO: Starting service.d [Scheduler]
[07:55:00] INFO: Running scheduler.sh
[2024-12-20 07:55:01] STATUS: Starting scheduler
Traceback (most recent call last):
File "/simplescheduler/scheduler.py", line 95, in
event_time = main.evaluate_event_time(t, sunrise, sunset)
File "/simplescheduler/main.py", line 823, in evaluate_event_time
if 0 <= int(hm[0]) < 24 and 0 <= int(hm[1]) < 60:

@arthurdent75 arthurdent75 added the enhancement New feature or request label Dec 20, 2024
@arthurdent75 arthurdent75 self-assigned this Dec 20, 2024
@arthurdent75
Copy link
Owner

arthurdent75 commented Dec 20, 2024

You write the time as 23.00
As per the manual, you must write 23:00
I will add a check in the next release

@arthurdent75 arthurdent75 changed the title Does not work Application crashes if you write the time with dot instead of colon Dec 20, 2024
@Manseiler
Copy link
Author

Thanks, what a shame (to me) .. , I checked so much.., but I did not see this
But I had this : issue some times already , (then the single schedule did not work, but the rest was ok) but I do not remember such a never ending blocking...
Might be good to have a syntax check point, like you mentioned
Many thanks !!!!!!!!!!!!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants