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

Merge pull request #6 from ChristianTremblay/issue-5

Issue 5
This commit is contained in:
Joel Bender 2015-07-31 21:37:32 -04:00
commit 6b5c58e5ac
2 changed files with 3 additions and 3 deletions

View File

@ -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:
if 'vendorIdentifier' not in kwargs:
raise RuntimeError("vendorId required to auto-register the LocalDeviceObject class")
register_object_type(self.__class__, vendor_id=kwargs['vendorId'])
register_object_type(self.__class__, vendor_id=kwargs['vendorIdentifier'])
# check for local time
if 'localDate' in kwargs:

View File

@ -574,7 +574,7 @@ def bind(*args):
raise RuntimeError("mistery unbound service {!r}".format(sid))
# go through the argument pairs
for i in xrange(len(args)-1):
for i in range(len(args)-1):
client = args[i]
if _debug: bind._debug(" - client: %r", client)
server = args[i+1]