main
Valentin Ochs 2022-11-06 18:27:26 +01:00
parent 205189c268
commit 6d6581991d
1 changed files with 1 additions and 1 deletions

View File

@ -25,7 +25,7 @@ class DoorControlNfc(util.Loggable):
def _open_nfc_fifo(self) -> IO:
"""Opens config.nfc_fifo as the FIFO through which detected tokens are passed in."""
self._logger().debug(f"Opening FIFO {self._config.nfc_fifo}")
return open(self._config.nfc_fifo, "rb")
return open(self._config.nfc_fifo, "r")
def _read_valid_tokens(self) -> Container:
"""Refreshes all tokens from config.valid_tokens"""