1
0
mirror of https://github.com/JoelBender/bacpypes synced 2025-09-28 22:15:23 +08:00

align the API (#208)

This commit is contained in:
Joel Bender 2018-07-06 00:15:03 -04:00
parent 816bab7b60
commit debf463a4a
3 changed files with 6 additions and 6 deletions

View File

@ -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)

View File

@ -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):

View File

@ -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):