From ca3cc27e400b5791702f622198526bdcf45dc1cc Mon Sep 17 00:00:00 2001
From: Fabian Affolter <mail@fabian-affolter.ch>
Date: Sat, 7 Apr 2018 10:41:35 +0200
Subject: [PATCH] Upgrade sqlalchemy to 1.2.6 (#13733)

---
 homeassistant/components/recorder/__init__.py | 7 +++----
 homeassistant/components/sensor/sql.py        | 2 +-
 requirements_all.txt                          | 2 +-
 requirements_test_all.txt                     | 2 +-
 4 files changed, 6 insertions(+), 7 deletions(-)

diff --git a/homeassistant/components/recorder/__init__.py b/homeassistant/components/recorder/__init__.py
index f10e0fc75d7..64e2b85f611 100644
--- a/homeassistant/components/recorder/__init__.py
+++ b/homeassistant/components/recorder/__init__.py
@@ -35,7 +35,7 @@ from . import migration, purge
 from .const import DATA_INSTANCE
 from .util import session_scope
 
-REQUIREMENTS = ['sqlalchemy==1.2.5']
+REQUIREMENTS = ['sqlalchemy==1.2.6']
 
 _LOGGER = logging.getLogger(__name__)
 
@@ -47,9 +47,8 @@ ATTR_KEEP_DAYS = 'keep_days'
 ATTR_REPACK = 'repack'
 
 SERVICE_PURGE_SCHEMA = vol.Schema({
-    vol.Optional(ATTR_KEEP_DAYS):
-        vol.All(vol.Coerce(int), vol.Range(min=0)),
-    vol.Optional(ATTR_REPACK, default=False): cv.boolean
+    vol.Optional(ATTR_KEEP_DAYS): vol.All(vol.Coerce(int), vol.Range(min=0)),
+    vol.Optional(ATTR_REPACK, default=False): cv.boolean,
 })
 
 DEFAULT_URL = 'sqlite:///{hass_config_path}'
diff --git a/homeassistant/components/sensor/sql.py b/homeassistant/components/sensor/sql.py
index af9fa233d40..eeca31fa36b 100644
--- a/homeassistant/components/sensor/sql.py
+++ b/homeassistant/components/sensor/sql.py
@@ -19,7 +19,7 @@ from homeassistant.helpers.entity import Entity
 
 _LOGGER = logging.getLogger(__name__)
 
-REQUIREMENTS = ['sqlalchemy==1.2.5']
+REQUIREMENTS = ['sqlalchemy==1.2.6']
 
 CONF_QUERIES = 'queries'
 CONF_QUERY = 'query'
diff --git a/requirements_all.txt b/requirements_all.txt
index b2cb5155aec..e71616d6ddf 100644
--- a/requirements_all.txt
+++ b/requirements_all.txt
@@ -1196,7 +1196,7 @@ spotcrime==1.0.3
 # homeassistant.components.recorder
 # homeassistant.scripts.db_migrator
 # homeassistant.components.sensor.sql
-sqlalchemy==1.2.5
+sqlalchemy==1.2.6
 
 # homeassistant.components.statsd
 statsd==3.2.1
diff --git a/requirements_test_all.txt b/requirements_test_all.txt
index 645b56b9e62..ce20ecfbfc6 100644
--- a/requirements_test_all.txt
+++ b/requirements_test_all.txt
@@ -179,7 +179,7 @@ somecomfort==0.5.0
 # homeassistant.components.recorder
 # homeassistant.scripts.db_migrator
 # homeassistant.components.sensor.sql
-sqlalchemy==1.2.5
+sqlalchemy==1.2.6
 
 # homeassistant.components.statsd
 statsd==3.2.1