1
0
mirror of https://github.com/JoelBender/bacpypes synced 2025-10-27 00:57:47 +08:00

give the local date and time properties a default value so it's not None, the value is never read or written

This commit is contained in:
Joel Bender
2017-12-01 01:06:55 -05:00
parent 51d6782b3c
commit b786ff0f71
3 changed files with 6 additions and 6 deletions

View File

@@ -27,7 +27,7 @@ _log = ModuleLogger(globals())
class CurrentDateProperty(Property):
def __init__(self, identifier):
Property.__init__(self, identifier, Date, default=None, optional=True, mutable=False)
Property.__init__(self, identifier, Date, default=(), optional=True, mutable=False)
def ReadProperty(self, obj, arrayIndex=None):
# access an array
@@ -49,7 +49,7 @@ class CurrentDateProperty(Property):
class CurrentTimeProperty(Property):
def __init__(self, identifier):
Property.__init__(self, identifier, Time, default=None, optional=True, mutable=False)
Property.__init__(self, identifier, Time, default=(), optional=True, mutable=False)
def ReadProperty(self, obj, arrayIndex=None):
# access an array