New tokens

This commit is contained in:
Lynn Ochs 2022-11-22 19:25:33 +01:00
parent 2d351df20b
commit 14a6cf2042

View File

@ -93,6 +93,11 @@ class DoorControlNfc(util.Loggable):
def handle_token(self, token):
with self._mutex:
if token not in self._tokens:
split_token = token.split(':')[0]
if split_token in self._tokens:
self._logger().warning(f"Old-style token: {split_token} -> {token}")
token = split_token
if token in self._tokens:
data = self._tokens[token]