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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user