Skip to content

Commit

Permalink
correctly unpack bbmd info for WhoIsRouterForeign.py
Browse files Browse the repository at this point in the history
  • Loading branch information
Damien Picard committed Nov 27, 2020
1 parent 825e016 commit 8688085
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions samples/WhoIsRouterForeign.py
Original file line number Diff line number Diff line change
Expand Up @@ -34,9 +34,9 @@
@bacpypes_debugging
class WhoIsRouterApplication(BIPNetworkApplication):

def __init__(self, *args):
def __init__(self, *args, **kwargs):
if _debug: WhoIsRouterApplication._debug("__init__ %r", args)
BIPNetworkApplication.__init__(self, *args)
BIPNetworkApplication.__init__(self, *args, **kwargs)

def request(self, adapter, npdu):
if _debug: WhoIsRouterApplication._debug("request %r %r", adapter, npdu)
Expand Down Expand Up @@ -120,8 +120,8 @@ def main():
# make a simple application
this_application = WhoIsRouterApplication(
args.ini.address,
Address(args.ini.foreignbbmd),
int(args.ini.foreignttl),
bbmdAddress=Address(args.ini.foreignbbmd),
bbmdTTL=int(args.ini.foreignttl)
)
if _debug: _log.debug(" - this_application: %r", this_application)

Expand Down

0 comments on commit 8688085

Please sign in to comment.