From 5606d4bb1253c50bd0a4d0f0c079d35ef884c465 Mon Sep 17 00:00:00 2001 From: jamespcole Date: Wed, 20 May 2015 17:13:13 +1000 Subject: [PATCH] fixed session error during automated tests --- homeassistant/components/http.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/homeassistant/components/http.py b/homeassistant/components/http.py index e639d7fc2c8..c1c0899c9ef 100644 --- a/homeassistant/components/http.py +++ b/homeassistant/components/http.py @@ -216,8 +216,8 @@ class RequestHandler(SimpleHTTPRequestHandler): def __init__(self, req, client_addr, server): """ Contructor, call the base constructor and set up session """ - SimpleHTTPRequestHandler.__init__(self, req, client_addr, server) self._session = None + SimpleHTTPRequestHandler.__init__(self, req, client_addr, server) def _handle_request(self, method): # pylint: disable=too-many-branches """ Does some common checks and calls appropriate method. """ @@ -433,8 +433,8 @@ class RequestHandler(SimpleHTTPRequestHandler): if session is not None: session.reset_expiry() return session - else: - return None + + return None def get_current_session_id(self): """