Format log as string (#2984)

This commit is contained in:
Joakim Sørensen 2021-06-30 12:31:56 +02:00 committed by GitHub
parent 2b6829a786
commit fe785622ec
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -109,7 +109,7 @@ class Ingress(FileConfiguration, CoreSysAttributes):
def validate_session(self, session: str) -> bool: def validate_session(self, session: str) -> bool:
"""Return True if session valid and make it longer valid.""" """Return True if session valid and make it longer valid."""
if session not in self.sessions: if session not in self.sessions:
_LOGGER.debug("Session %f is not known", session) _LOGGER.debug("Session %s is not known", session)
return False return False
# check if timestamp valid, to avoid crash on malformed timestamp # check if timestamp valid, to avoid crash on malformed timestamp