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:
parent
887e0d0bbc
commit
f1b7f9b1fa
|
@ -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))
|
||||
]
|
||||
|
|
|
@ -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))
|
||||
]
|
||||
|
|
|
@ -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))
|
||||
]
|
||||
|
|
Loading…
Reference in New Issue
Block a user