Closed sarvjeets closed 3 years ago
@MisterWil Please let me know if you need anything from my side to review this pull request. Thanks
Thanks for fixing this! Do you need a new version pushed out too?
Thank you. Yes, that would be great.
abodepy-1.2.2 is now available via pypi
I noticed that enabling/disabling automations was broken as 'set_active' method was renamed to 'enable'. With this change, I'm able to enable/disable the Abode automations.
Without this change: $ abodepy -u ... -p ... --deactivate xxx 2021-05-10 10:51:52 INFO (MainThread) [abodepy] Updating all devices... 2021-05-10 10:51:52 INFO (MainThread) [abodepy] Login successful 2021-05-10 10:51:52 INFO (MainThread) [abodepy] Updating all automations... 2021-05-10 10:51:53 INFO (MainThread) [abodepy] Logout successful Traceback (most recent call last): File "/home/sarvjeet/.local/bin/abodepy", line 8, in
sys.exit(main())
File "/home/sarvjeet/.local/lib/python3.8/site-packages/abodepy/main.py", line 454, in main
call()
File "/home/sarvjeet/.local/lib/python3.8/site-packages/abodepy/main.py", line 339, in call
if automation.set_active(False):
AttributeError: 'AbodeAutomation' object has no attribute 'set_active'
$
With this change: $ abodepy -u ... -p ... --deactivate xxx 2021-05-10 22:09:33 INFO (MainThread) [abodepy] Updating all devices... 2021-05-10 22:09:33 INFO (MainThread) [abodepy] Login successful 2021-05-10 22:09:33 INFO (MainThread) [abodepy] Updating all automations... 2021-05-10 22:09:33 INFO (MainThread) [abodepy.automation] Set automation XXX enable to: False 2021-05-10 22:09:33 INFO (MainThread) [abodecl] Deactivated automation with id: xxx 2021-05-10 22:09:34 INFO (MainThread) [abodepy] Logout successful $
Thanks.