New tokens
This commit is contained in:
parent
2d351df20b
commit
14a6cf2042
|
@ -93,6 +93,11 @@ class DoorControlNfc(util.Loggable):
|
||||||
|
|
||||||
def handle_token(self, token):
|
def handle_token(self, token):
|
||||||
with self._mutex:
|
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:
|
if token in self._tokens:
|
||||||
data = self._tokens[token]
|
data = self._tokens[token]
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user