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

Remove trigger from items #166

Closed
wants to merge 1 commit into from

Conversation

ohinckel
Copy link

The current implementation about item triggers offers only methods to add triggers to an item (e.g. update trigger or logic trigger).

This patch adds to methods to remove the trigger again:

  • remove_method_trigger()
  • remove_logic_trigger()

This way a logic developer (for example) has the posibility to dynamically register a trigger and unregister them later again if the logic completes.

Maybe there are other situation where unregistering a trigger is useful (e.g. when reloading some configuration - which is currently not really supported, but may be supported in future versions).

@ohinckel
Copy link
Author

Created new PR smarthomeNG/smarthome#51 in new project and will close this issue now. Thanks for your great application!

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.

None yet

1 participant