Skip to content

Commit

Permalink
Added default parameter to pass the tests
Browse files Browse the repository at this point in the history
  • Loading branch information
ryanhz committed Oct 29, 2020
1 parent 6aa9e44 commit 20e3fd9
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion osdp/_bus.py
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ def send_command(self, command: Command):
else:
log.warning("Device not found with address %s", command.address)

def add_device(self, address: int, use_crc: bool, use_secure_channel: bool, master_key: bytes) -> Device:
def add_device(self, address: int, use_crc: bool, use_secure_channel: bool, master_key: bytes = None) -> Device:
found_device = self._configured_devices.get(address)
self._configured_devices_lock.acquire()
if found_device is not None:
Expand Down
2 changes: 1 addition & 1 deletion osdp/_device.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@

class Device(object):

def __init__(self, address: int, use_crc: bool, use_secure_channel: bool, master_key: bytes):
def __init__(self, address: int, use_crc: bool, use_secure_channel: bool, master_key: bytes = None):
self._use_secure_channel = use_secure_channel
self.address = address
self.message_control = Control(0, use_crc, use_secure_channel)
Expand Down

0 comments on commit 20e3fd9

Please sign in to comment.