Allow to pass arguments to register()
This commit is contained in:
parent
c932bc9027
commit
065d4e63d1
1 changed files with 2 additions and 2 deletions
|
@ -172,12 +172,12 @@ class ECR(object):
|
|||
# !: Last is a short access for transmitter.last if possible.
|
||||
last = property(__get_last)
|
||||
|
||||
def register(self, config_byte):
|
||||
def register(self, config_byte, **kwargs):
|
||||
"""
|
||||
registers this ECR at the PT, locking menus
|
||||
for real world conditions.
|
||||
"""
|
||||
kwargs = {}
|
||||
kwargs = dict(kwargs)
|
||||
if self.password:
|
||||
kwargs['password'] = self.password
|
||||
if config_byte is not None:
|
||||
|
|
Loading…
Reference in a new issue