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

When state_hold != None then kwargs will not be set #374

Closed
jkrasinger opened this issue Jul 25, 2022 · 3 comments
Closed

When state_hold != None then kwargs will not be set #374

jkrasinger opened this issue Jul 25, 2022 · 3 comments

Comments

@jkrasinger
Copy link

pyscript Version 1.3.3
homeassistant Version 2022.6.7 on hassio on Raspberry Pi

When i set state_hold to a value != None, then kwargs will not be set correctly in a @state_trigger.

Correct: The following state_trigger with state_hold=None set "status=min" on triggering:
@state_trigger(f"float({t_sensor}) < float({i_min_day})", state_hold_false=0, state_hold=None, state_check_now=True, kwargs={'status': 'min'})

Wrong: The following state_trigger with state_hold=60 set "status=None" on triggering:
@state_trigger(f"float({t_sensor}) < float({i_min_day})", state_hold_false=0, state_hold=60, state_check_now=True, kwargs={'status': 'min'})

@ALERTua
Copy link
Contributor

ALERTua commented Jul 26, 2022

i support this issue. this bugs me a lot.

@absolutezer093
Copy link

This is affecting me as well

@ALERTua
Copy link
Contributor

ALERTua commented Aug 15, 2022

I've finally got some time to work on this issue and found a fix. #382

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

No branches or pull requests

3 participants