Fix imports (using isort)

This commit is contained in:
Paulus Schoutsen committed 2016-02-18 21:27:50 -08:00
1 parent 233a2a2878
commit e80309c03c
214 files changed
+644 -718

No files matched your search

+6 -13
View File
@@ -8,21 +8,14 @@ https://home-assistant.io/components/switch.template/
"""
import logging
from homeassistant.helpers.entity import generate_entity_id
from homeassistant.components.switch import SwitchDevice
from homeassistant.core import EVENT_STATE_CHANGED
from homeassistant.components.switch import DOMAIN, SwitchDevice
from homeassistant.const import (
STATE_ON,
STATE_OFF,
ATTR_FRIENDLY_NAME,
CONF_VALUE_TEMPLATE)
from homeassistant.helpers.service import call_from_config
from homeassistant.util import template, slugify
ATTR_FRIENDLY_NAME, CONF_VALUE_TEMPLATE, STATE_OFF, STATE_ON)
from homeassistant.core import EVENT_STATE_CHANGED
from homeassistant.exceptions import TemplateError
from homeassistant.components.switch import DOMAIN
from homeassistant.helpers.entity import generate_entity_id
from homeassistant.helpers.service import call_from_config
from homeassistant.util import slugify, template
ENTITY_ID_FORMAT = DOMAIN + '.{}'