-
-
Notifications
You must be signed in to change notification settings - Fork 18
Open
Description
When I use hs.py to set wemo smart plug on/off, I got this exception
Traceback (most recent call last):
File "/root/hs.py", line 91, in
hs.setStates(sys.argv[argumentLength-1] or None)
File "/usr/local/lib/python3.9/dist-packages/homescript/init.py", line 124, in setStates
item['value'][0]['value'] = int(value)
IndexError: list index out of range.
I try to debug the problem, and I found if I make minor change to "/usr/local/lib/python3.9/dist-packages/homescript/init.py" file, it fixes the issue. See attached modified init.py, I am not sure if there is any other place that need to modify.
Metadata
Metadata
Assignees
Labels
No labels