Sort imports according to PEP8 for file (#29694)

pull/29761/head
Bas Nijholt 2019-12-09 11:45:11 +01:00 committed by Franck Nijhof
parent a78fe25871
commit fa6b75f2c1
4 changed files with 8 additions and 9 deletions

View File

@ -4,16 +4,15 @@ import os
import voluptuous as vol
from homeassistant.const import CONF_FILENAME
import homeassistant.helpers.config_validation as cv
import homeassistant.util.dt as dt_util
from homeassistant.components.notify import (
ATTR_TITLE,
ATTR_TITLE_DEFAULT,
PLATFORM_SCHEMA,
BaseNotificationService,
)
from homeassistant.const import CONF_FILENAME
import homeassistant.helpers.config_validation as cv
import homeassistant.util.dt as dt_util
CONF_TIMESTAMP = "timestamp"

View File

@ -1,12 +1,12 @@
"""Support for sensor value(s) stored in local files."""
import os
import logging
import os
import voluptuous as vol
import homeassistant.helpers.config_validation as cv
from homeassistant.components.sensor import PLATFORM_SCHEMA
from homeassistant.const import CONF_VALUE_TEMPLATE, CONF_NAME, CONF_UNIT_OF_MEASUREMENT
from homeassistant.const import CONF_NAME, CONF_UNIT_OF_MEASUREMENT, CONF_VALUE_TEMPLATE
import homeassistant.helpers.config_validation as cv
from homeassistant.helpers.entity import Entity
_LOGGER = logging.getLogger(__name__)

View File

@ -3,9 +3,9 @@ import os
import unittest
from unittest.mock import call, mock_open, patch
from homeassistant.setup import setup_component
import homeassistant.components.notify as notify
from homeassistant.components.notify import ATTR_TITLE_DEFAULT
from homeassistant.setup import setup_component
import homeassistant.util.dt as dt_util
from tests.common import assert_setup_component, get_test_home_assistant

View File

@ -6,8 +6,8 @@ from unittest.mock import Mock, patch
# https://bugs.python.org/issue23004
from mock_open import MockOpen
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, mock_registry