mirror of
https://github.com/home-assistant/core.git
synced 2025-07-23 13:17:32 +00:00
fixed session error during automated tests
This commit is contained in:
parent
a8e7903f39
commit
5606d4bb12
@ -216,8 +216,8 @@ class RequestHandler(SimpleHTTPRequestHandler):
|
|||||||
|
|
||||||
def __init__(self, req, client_addr, server):
|
def __init__(self, req, client_addr, server):
|
||||||
""" Contructor, call the base constructor and set up session """
|
""" Contructor, call the base constructor and set up session """
|
||||||
SimpleHTTPRequestHandler.__init__(self, req, client_addr, server)
|
|
||||||
self._session = None
|
self._session = None
|
||||||
|
SimpleHTTPRequestHandler.__init__(self, req, client_addr, server)
|
||||||
|
|
||||||
def _handle_request(self, method): # pylint: disable=too-many-branches
|
def _handle_request(self, method): # pylint: disable=too-many-branches
|
||||||
""" Does some common checks and calls appropriate method. """
|
""" Does some common checks and calls appropriate method. """
|
||||||
@ -433,8 +433,8 @@ class RequestHandler(SimpleHTTPRequestHandler):
|
|||||||
if session is not None:
|
if session is not None:
|
||||||
session.reset_expiry()
|
session.reset_expiry()
|
||||||
return session
|
return session
|
||||||
else:
|
|
||||||
return None
|
return None
|
||||||
|
|
||||||
def get_current_session_id(self):
|
def get_current_session_id(self):
|
||||||
"""
|
"""
|
||||||
|
Loading…
x
Reference in New Issue
Block a user