mirror of
https://github.com/JoelBender/bacpypes
synced 2025-10-05 22:18:16 +08:00
make this work with py25 for rudimentary testing
This commit is contained in:
parent
a0a7c385dc
commit
b8e7b54b84
|
@ -22,13 +22,12 @@ _log = ModuleLogger(globals())
|
||||||
#
|
#
|
||||||
|
|
||||||
def something_changed(thing, old_value, new_value):
|
def something_changed(thing, old_value, new_value):
|
||||||
print("{} changed from {} to {}".format(thing, old_value, new_value))
|
print("%r changed from %r to %r" % (thing, old_value, new_value))
|
||||||
|
|
||||||
#
|
#
|
||||||
# SampleEventDetection
|
# SampleEventDetection
|
||||||
#
|
#
|
||||||
|
|
||||||
@bacpypes_debugging
|
|
||||||
class SampleEventDetection(DetectionAlgorithm):
|
class SampleEventDetection(DetectionAlgorithm):
|
||||||
|
|
||||||
def __init__(self, **kwargs):
|
def __init__(self, **kwargs):
|
||||||
|
@ -64,6 +63,8 @@ class SampleEventDetection(DetectionAlgorithm):
|
||||||
else:
|
else:
|
||||||
if _debug: SampleEventDetection._debug(" - parameter mismatch")
|
if _debug: SampleEventDetection._debug(" - parameter mismatch")
|
||||||
|
|
||||||
|
bacpypes_debugging(SampleEventDetection)
|
||||||
|
|
||||||
#
|
#
|
||||||
#
|
#
|
||||||
#
|
#
|
||||||
|
|
Loading…
Reference in New Issue
Block a user