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

Fixes #374 #382

Merged
merged 1 commit into from
Aug 15, 2022
Merged

Fixes #374 #382

merged 1 commit into from
Aug 15, 2022

Conversation

ALERTua
Copy link
Contributor

@ALERTua ALERTua commented Aug 15, 2022

short test to prove the fix works:

@state_trigger("input_boolean.test_boolean", state_hold=1, kwargs={'test_kwarg': 123})
def tryouts(trigger_type=None, var_name=None, value=None, old_value=None, context=None, **kwargs):
    log.debug(f"tryouts trigger_type: {trigger_type}, {kwargs}")
    if kwargs.get('test_kwarg') == 123:
        log.debug("after the fix")
    else:
        log.debug("before the fix")

@craigbarratt craigbarratt merged commit 797a343 into custom-components:master Aug 15, 2022
@craigbarratt
Copy link
Member

Thanks for the fix!

@JayNewstrom
Copy link

@craigbarratt could you do a release with this fix?

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

Successfully merging this pull request may close these issues.

3 participants