Code cleanup

master
Valdur Kana 11 months ago
parent a9f7638c14
commit 0920df1fb0
  1. 2
      kdoorpi.py
  2. 2
      wiegand.py

@ -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:

@ -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}")

Loading…
Cancel
Save