Skip to content

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