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:
parent
816bab7b60
commit
debf463a4a
|
@ -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)
|
||||
|
||||
|
|
|
@ -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):
|
||||
|
|
|
@ -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):
|
||||
|
|
Loading…
Reference in New Issue
Block a user