From 0599b8600bd9e8c5882f359b68b1576ec22452ae Mon Sep 17 00:00:00 2001 From: DewGew Date: Thu, 8 Feb 2024 10:23:06 +0100 Subject: [PATCH] Update trait.py --- modules/trait.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/modules/trait.py b/modules/trait.py index 905cd61..58fcdfd 100644 --- a/modules/trait.py +++ b/modules/trait.py @@ -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')