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

ignore propertyList property during ReadPropertyMultiple request (#273)

* 0.17.6 released

* ignore propertyList property during ReadPropertyMultiple request

* correctly resolving conflicts...
This commit is contained in:
Ryan Shumate 2019-05-24 00:31:33 -04:00 committed by Joel Bender
parent 4f6e50747c
commit a5b0f98ada
3 changed files with 15 additions and 0 deletions

View File

@ -291,6 +291,11 @@ class ReadWritePropertyMultipleServices(Capability):
for propId, prop in obj._properties.items():
if _debug: ReadWritePropertyMultipleServices._debug(" - checking: %r %r", propId, prop.optional)
# skip propertyList for ReadPropertyMultiple
if (propId == 'propertyList'):
if _debug: ReadWritePropertyMultipleServices._debug(" - ignore propertyList")
continue
if (propertyIdentifier == 'all'):
pass
elif (propertyIdentifier == 'required') and (prop.optional):

View File

@ -288,6 +288,11 @@ class ReadWritePropertyMultipleServices(Capability):
else:
for propId, prop in obj._properties.items():
if _debug: ReadWritePropertyMultipleServices._debug(" - checking: %r %r", propId, prop.optional)
# skip propertyList for ReadPropertyMultiple
if (propId == 'propertyList'):
if _debug: ReadWritePropertyMultipleServices._debug(" - ignore propertyList")
continue
if (propertyIdentifier == 'all'):
pass

View File

@ -289,6 +289,11 @@ class ReadWritePropertyMultipleServices(Capability):
for propId, prop in obj._properties.items():
if _debug: ReadWritePropertyMultipleServices._debug(" - checking: %r %r", propId, prop.optional)
# skip propertyList for ReadPropertyMultiple
if (propId == 'propertyList'):
if _debug: ReadWritePropertyMultipleServices._debug(" - ignore propertyList")
continue
if (propertyIdentifier == 'all'):
pass
elif (propertyIdentifier == 'required') and (prop.optional):