From debf463a4a4a8e358fa2d5a942425db9eb53b9ec Mon Sep 17 00:00:00 2001 From: Joel Bender Date: Fri, 6 Jul 2018 00:15:03 -0400 Subject: [PATCH] align the API (#208) --- py25/bacpypes/service/cov.py | 4 ++-- py27/bacpypes/service/cov.py | 4 ++-- py34/bacpypes/service/cov.py | 4 ++-- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/py25/bacpypes/service/cov.py b/py25/bacpypes/service/cov.py index 3e79c9c..abbedf6 100644 --- a/py25/bacpypes/service/cov.py +++ b/py25/bacpypes/service/cov.py @@ -303,14 +303,14 @@ class COVIncrementCriteria(COVDetection): return value_changed - def send_cov_notifications(self): + def send_cov_notifications(self, subscription=None): if _debug: COVIncrementCriteria._debug("send_cov_notifications") # when sending out notifications, keep the current value self.previous_reported_value = self.presentValue # continue - COVDetection.send_cov_notifications(self) + COVDetection.send_cov_notifications(self, subscription) bacpypes_debugging(COVDetection) diff --git a/py27/bacpypes/service/cov.py b/py27/bacpypes/service/cov.py index 0bb07d5..4698eab 100644 --- a/py27/bacpypes/service/cov.py +++ b/py27/bacpypes/service/cov.py @@ -302,14 +302,14 @@ class COVIncrementCriteria(COVDetection): return value_changed - def send_cov_notifications(self): + def send_cov_notifications(self, subscription=None): if _debug: COVIncrementCriteria._debug("send_cov_notifications") # when sending out notifications, keep the current value self.previous_reported_value = self.presentValue # continue - COVDetection.send_cov_notifications(self) + COVDetection.send_cov_notifications(self, subscription) class AccessDoorCriteria(COVDetection): diff --git a/py34/bacpypes/service/cov.py b/py34/bacpypes/service/cov.py index 0bb07d5..4698eab 100644 --- a/py34/bacpypes/service/cov.py +++ b/py34/bacpypes/service/cov.py @@ -302,14 +302,14 @@ class COVIncrementCriteria(COVDetection): return value_changed - def send_cov_notifications(self): + def send_cov_notifications(self, subscription=None): if _debug: COVIncrementCriteria._debug("send_cov_notifications") # when sending out notifications, keep the current value self.previous_reported_value = self.presentValue # continue - COVDetection.send_cov_notifications(self) + COVDetection.send_cov_notifications(self, subscription) class AccessDoorCriteria(COVDetection):