Fix ingress unbound local errors (#1915)

This commit is contained in:
Martin Hjelmare 2020-08-14 15:20:36 +02:00 committed by GitHub
parent 01a8b58054
commit 930eed4500
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -77,7 +77,7 @@ class Ingress(JsonConfig, CoreSysAttributes):
try:
valid_dt = utc_from_timestamp(valid)
except OverflowError:
_LOGGER.warning("Session timestamp %f is invalid!", valid_dt)
_LOGGER.warning("Session timestamp %f is invalid!", valid)
continue
if valid_dt < now:
@ -115,7 +115,7 @@ class Ingress(JsonConfig, CoreSysAttributes):
try:
valid_until = utc_from_timestamp(self.sessions[session])
except OverflowError:
_LOGGER.warning("Session timestamp %f is invalid!", valid_until)
_LOGGER.warning("Session timestamp %f is invalid!", self.sessions[session])
return False
# Is still valid?