Skip to content

Commit

Permalink
Update trait.py
Browse files Browse the repository at this point in the history
  • Loading branch information
DewGew authored Feb 8, 2024
1 parent 90d05fc commit 0599b86
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions modules/trait.py
Original file line number Diff line number Diff line change
Expand Up @@ -351,11 +351,11 @@ def execute(device, command, params, user_id, challenge):

if command == 'action.devices.commands.TimerStart':

url = 'customevent&event=TIMER&data={"idx":' + idx + ',"time":' + str(params['timerTimeSec']) + ',"on":true}'
url += 'customevent&event=TIMER&data={"idx":' + idx + ',"time":' + str(params['timerTimeSec']) + ',"on":true}'

if command == 'action.devices.commands.TimerCancel':

url = 'customevent&event=TIMER&data={"idx":' + idx + ',"cancel":true}'
url += 'customevent&event=TIMER&data={"idx":' + idx + ',"cancel":true}'

if state['Protected'] is True:
url = url + '&passcode=' + challenge.get('pin')
Expand Down

0 comments on commit 0599b86

Please sign in to comment.