mirror of
https://github.com/JoelBender/bacpypes
synced 2025-10-27 00:57:47 +08:00
minor debugging
This commit is contained in:
@@ -183,7 +183,9 @@ class Property(Logging):
|
||||
self.identifier, obj, value, arrayIndex, priority, direct
|
||||
)
|
||||
|
||||
if (not direct):
|
||||
if direct:
|
||||
if _debug: Property._debug(" - direct write")
|
||||
else:
|
||||
# see if it must be provided
|
||||
if not self.optional and value is None:
|
||||
raise ValueError("%s value required" % (self.identifier,))
|
||||
|
||||
Reference in New Issue
Block a user