Move imports in sql component (#27713)

* move imports in sql component

* fix: variable redeclaration

* fix: close test db session on platform setup
This commit is contained in:
Michał Mrozek authored and Fabian Affolter committed 2019-10-20 10:10:27 +02:00
1 parent 9571f869d1
commit ed46834a30
2 files changed
+11 -10

No files matched your search

+2 -1
View File
@@ -1,11 +1,12 @@
"""The test for the sql sensor platform."""
import unittest
import pytest
import voluptuous as vol
from homeassistant.components.sql.sensor import validate_sql_select
from homeassistant.setup import setup_component
from homeassistant.const import STATE_UNKNOWN
from homeassistant.setup import setup_component
from tests.common import get_test_home_assistant