Code cleanup

This commit is contained in:
Valdur Kana 2022-03-11 19:59:01 +02:00
parent a9f7638c14
commit 0920df1fb0
2 changed files with 2 additions and 2 deletions

View File

@ -67,7 +67,7 @@ class DoorController:
uids.add(token["token"]["uid_hash"].strip())
self.uids = uids
def wiegand_callback(self, bits, value):
def wiegand_callback(self, value):
uid_hash = hash_uid(value, self.uid_salt)
logging.debug(f"hash {uid_hash}")
if uid_hash in self.uids:

View File

@ -130,7 +130,7 @@ class Decoder:
if self.bits >= 26:
hex = self.get_hex()
if hex:
self.callback(self.bits, hex)
self.callback(hex)
else:
logging.error(f"Expected 26 bits, but got {self.bits:d}: {self.items}")