doorcontrol: Define Credential as frozen to allow hashing
This commit is contained in:
parent
8d3f548e8b
commit
f29010469a
@ -21,7 +21,7 @@ class InvalidParity(InvalidHexCode):
|
||||
super().__init__(f"Bad {even_odd} parity")
|
||||
|
||||
|
||||
@dataclasses.dataclass
|
||||
@dataclasses.dataclass(frozen=True)
|
||||
class Credential:
|
||||
bits: bitstring.Bits
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user