From 4777dc0025c7789ad0dd4aa5e8f013bf96776def Mon Sep 17 00:00:00 2001 From: Elliot Simons Date: Tue, 25 Jan 2022 12:27:24 +0000 Subject: [PATCH 1/3] Fix deprecated sensor and hook --- fivetran_provider/hooks/fivetran.py | 2 +- fivetran_provider/sensors/fivetran.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/fivetran_provider/hooks/fivetran.py b/fivetran_provider/hooks/fivetran.py index 007d0de..9a01f01 100644 --- a/fivetran_provider/hooks/fivetran.py +++ b/fivetran_provider/hooks/fivetran.py @@ -8,7 +8,7 @@ import pendulum from airflow.exceptions import AirflowException -from airflow.hooks.base_hook import BaseHook +from airflow.hooks.base import BaseHook class FivetranHook(BaseHook): diff --git a/fivetran_provider/sensors/fivetran.py b/fivetran_provider/sensors/fivetran.py index 35e3481..e745f95 100644 --- a/fivetran_provider/sensors/fivetran.py +++ b/fivetran_provider/sensors/fivetran.py @@ -1,4 +1,4 @@ -from airflow.sensors.base_sensor_operator import BaseSensorOperator +from airflow.sensors.base import BaseSensorOperator from airflow.utils.decorators import apply_defaults from fivetran_provider.hooks.fivetran import FivetranHook From b4dafe82b41b89d53c6f2a0d40f2f116ea26743c Mon Sep 17 00:00:00 2001 From: Elliot Simons Date: Tue, 25 Jan 2022 12:29:12 +0000 Subject: [PATCH 2/3] Revert "Fix deprecated sensor and hook" This reverts commit 4777dc0025c7789ad0dd4aa5e8f013bf96776def. --- fivetran_provider/hooks/fivetran.py | 2 +- fivetran_provider/sensors/fivetran.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/fivetran_provider/hooks/fivetran.py b/fivetran_provider/hooks/fivetran.py index 9a01f01..007d0de 100644 --- a/fivetran_provider/hooks/fivetran.py +++ b/fivetran_provider/hooks/fivetran.py @@ -8,7 +8,7 @@ import pendulum from airflow.exceptions import AirflowException -from airflow.hooks.base import BaseHook +from airflow.hooks.base_hook import BaseHook class FivetranHook(BaseHook): diff --git a/fivetran_provider/sensors/fivetran.py b/fivetran_provider/sensors/fivetran.py index e745f95..35e3481 100644 --- a/fivetran_provider/sensors/fivetran.py +++ b/fivetran_provider/sensors/fivetran.py @@ -1,4 +1,4 @@ -from airflow.sensors.base import BaseSensorOperator +from airflow.sensors.base_sensor_operator import BaseSensorOperator from airflow.utils.decorators import apply_defaults from fivetran_provider.hooks.fivetran import FivetranHook From 9c3b1561243fb9400252138c851dd49a282f8340 Mon Sep 17 00:00:00 2001 From: Elliot Simons Date: Tue, 25 Jan 2022 12:31:41 +0000 Subject: [PATCH 3/3] Fix deprecated sensor and hook --- fivetran_provider/hooks/fivetran.py | 2 +- fivetran_provider/sensors/fivetran.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/fivetran_provider/hooks/fivetran.py b/fivetran_provider/hooks/fivetran.py index 007d0de..9a01f01 100644 --- a/fivetran_provider/hooks/fivetran.py +++ b/fivetran_provider/hooks/fivetran.py @@ -8,7 +8,7 @@ import pendulum from airflow.exceptions import AirflowException -from airflow.hooks.base_hook import BaseHook +from airflow.hooks.base import BaseHook class FivetranHook(BaseHook): diff --git a/fivetran_provider/sensors/fivetran.py b/fivetran_provider/sensors/fivetran.py index 35e3481..e745f95 100644 --- a/fivetran_provider/sensors/fivetran.py +++ b/fivetran_provider/sensors/fivetran.py @@ -1,4 +1,4 @@ -from airflow.sensors.base_sensor_operator import BaseSensorOperator +from airflow.sensors.base import BaseSensorOperator from airflow.utils.decorators import apply_defaults from fivetran_provider.hooks.fivetran import FivetranHook