From a902772c48db05d8eb13ab4e03553e8aff47d544 Mon Sep 17 00:00:00 2001 From: Sarvjeet Singh Date: Mon, 10 May 2021 22:02:04 -0700 Subject: [PATCH] Fix enabling/disabling automations. --- abodepy/__main__.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/abodepy/__main__.py b/abodepy/__main__.py index 5fbd9ed..74ee57d 100644 --- a/abodepy/__main__.py +++ b/abodepy/__main__.py @@ -324,7 +324,7 @@ def _device_print(dev, append=''): automation = abode.get_automation(automation_id) if automation: - if automation.set_active(True): + if automation.enable(True): _LOGGER.info( "Activated automation with id: %s", automation_id) else: @@ -336,7 +336,7 @@ def _device_print(dev, append=''): automation = abode.get_automation(automation_id) if automation: - if automation.set_active(False): + if automation.enable(False): _LOGGER.info( "Deactivated automation with id: %s", automation_id) else: