mirror of
https://github.com/JoelBender/bacpypes
synced 2025-10-27 00:57:47 +08:00
backport changes to py25 and py27
This commit is contained in:
@@ -107,9 +107,9 @@ class LocalDeviceObject(DeviceObject, Logging):
|
||||
|
||||
# check for registration
|
||||
if self.__class__ not in registered_object_types.values():
|
||||
if 'vendorId' not in kwargs:
|
||||
raise RuntimeError("vendorId required to auto-register the LocalDeviceObject class")
|
||||
register_object_type(self.__class__, vendor_id=kwargs['vendorId'])
|
||||
if 'vendorIdentifier' not in kwargs:
|
||||
raise RuntimeError("vendorIdentifier required to auto-register the LocalDeviceObject class")
|
||||
register_object_type(self.__class__, vendor_id=kwargs['vendorIdentifier'])
|
||||
|
||||
# check for local time
|
||||
if 'localDate' in kwargs:
|
||||
|
||||
Reference in New Issue
Block a user