1
0
mirror of https://github.com/JoelBender/bacpypes synced 2025-09-28 22:15:23 +08:00

the 'description' property is optional

This commit is contained in:
Joel Bender 2017-08-02 11:14:34 -04:00
parent 887e0d0bbc
commit f1b7f9b1fa
3 changed files with 3 additions and 3 deletions

View File

@ -362,7 +362,7 @@ class Object(Logging):
properties = \
[ ObjectIdentifierProperty('objectIdentifier', ObjectIdentifier, optional=False)
, ReadableProperty('objectName', CharacterString, optional=False)
, ReadableProperty('description', CharacterString)
, OptionalProperty('description', CharacterString)
, OptionalProperty('profileName', CharacterString)
, ReadableProperty('propertyList', ArrayOf(PropertyIdentifier))
]

View File

@ -369,7 +369,7 @@ class Object(object):
properties = \
[ ObjectIdentifierProperty('objectIdentifier', ObjectIdentifier, optional=False)
, ReadableProperty('objectName', CharacterString, optional=False)
, ReadableProperty('description', CharacterString)
, OptionalProperty('description', CharacterString)
, OptionalProperty('profileName', CharacterString)
, ReadableProperty('propertyList', ArrayOf(PropertyIdentifier))
]

View File

@ -369,7 +369,7 @@ class Object:
properties = \
[ ObjectIdentifierProperty('objectIdentifier', ObjectIdentifier, optional=False)
, ReadableProperty('objectName', CharacterString, optional=False)
, ReadableProperty('description', CharacterString)
, OptionalProperty('description', CharacterString)
, OptionalProperty('profileName', CharacterString)
, ReadableProperty('propertyList', ArrayOf(PropertyIdentifier))
]