Skip to content

Commit

Permalink
Switch arg-position of port and name
Browse files Browse the repository at this point in the history
because port is more important
  • Loading branch information
Thor77 committed Aug 31, 2016
1 parent 142c34b commit 5b4b241
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions blueproximity/device.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,13 +24,13 @@ class BluetoothDevice(object):
'''
Abstract access to a bluetooth-device
'''
def __init__(self, mac, name=None, port=None):
def __init__(self, mac, port=None, name=None):
self.mac = mac
self.port = port
if not name:
self.name = bluetooth.lookup_name(mac)
else:
self.name = name
self.port = port

def scan_ports(self):
'''
Expand Down

0 comments on commit 5b4b241

Please sign in to comment.