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 2019-10-20 10:10:27 +02:00 committed by Fabian Affolter
parent 9571f869d1
commit ed46834a30
2 changed files with 11 additions and 10 deletions

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