mirror of
https://github.com/home-assistant/supervisor.git
synced 2025-07-19 15:16:33 +00:00
Fix ingress unbound local errors (#1915)
This commit is contained in:
parent
01a8b58054
commit
930eed4500
@ -77,7 +77,7 @@ class Ingress(JsonConfig, CoreSysAttributes):
|
|||||||
try:
|
try:
|
||||||
valid_dt = utc_from_timestamp(valid)
|
valid_dt = utc_from_timestamp(valid)
|
||||||
except OverflowError:
|
except OverflowError:
|
||||||
_LOGGER.warning("Session timestamp %f is invalid!", valid_dt)
|
_LOGGER.warning("Session timestamp %f is invalid!", valid)
|
||||||
continue
|
continue
|
||||||
|
|
||||||
if valid_dt < now:
|
if valid_dt < now:
|
||||||
@ -115,7 +115,7 @@ class Ingress(JsonConfig, CoreSysAttributes):
|
|||||||
try:
|
try:
|
||||||
valid_until = utc_from_timestamp(self.sessions[session])
|
valid_until = utc_from_timestamp(self.sessions[session])
|
||||||
except OverflowError:
|
except OverflowError:
|
||||||
_LOGGER.warning("Session timestamp %f is invalid!", valid_until)
|
_LOGGER.warning("Session timestamp %f is invalid!", self.sessions[session])
|
||||||
return False
|
return False
|
||||||
|
|
||||||
# Is still valid?
|
# Is still valid?
|
||||||
|
Loading…
x
Reference in New Issue
Block a user