Skip to content

Commit

Permalink
Merge pull request #14 from drscheme123/patch-1
Browse files Browse the repository at this point in the history
fix typo from PR #13
  • Loading branch information
Rick-Jongbloed authored May 18, 2018
2 parents eaacca4 + 0082ce5 commit 69ae25b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/openhab/triggers.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ def __init__(self, itemName, state=None, triggerName=None):
Trigger.__init__(self, triggerName, "core.ItemStateUpdateTrigger", Configuration(config))

class ItemStateChangeTrigger(Trigger):
def __init__(self, itemName, state=None, triggerName=None, previousState=None):):
def __init__(self, itemName, state=None, triggerName=None, previousState=None):
triggerName = triggerName or uuid.uuid1().hex
config = { "itemName": itemName }
if state is not None:
Expand Down Expand Up @@ -187,4 +187,4 @@ def callback(module, inputs):
rule = _FunctionRule(callback, group_triggers, extended=True, name=trigger_name)
get_automation_manager().addRule(rule)
return fn
return decorator
return decorator

0 comments on commit 69ae25b

Please sign in to comment.