Use relative imports inside integrations (#22235)

* Use relative imports inside integrations

* Lint

* Fix automation tests

* Fix scene imports
This commit is contained in:
Paulus Schoutsen authored and GitHub committed 2019-03-20 22:56:46 -07:00
1 parent ab17b22239
commit 4b1de61110
522 files changed
+1834 -1725

No files matched your search

+7 -11
View File
@@ -5,22 +5,18 @@ For more information about this platform, please refer to the documentation at
https://home-assistant.io/components/light.switch/
"""
import logging
import voluptuous as vol
from homeassistant.core import State, callback
from homeassistant.components.light import (
Light, PLATFORM_SCHEMA)
from homeassistant.components import switch
from homeassistant.const import (
STATE_ON,
ATTR_ENTITY_ID,
CONF_NAME,
CONF_ENTITY_ID,
STATE_UNAVAILABLE
)
from homeassistant.helpers.typing import HomeAssistantType, ConfigType
from homeassistant.helpers.event import async_track_state_change
ATTR_ENTITY_ID, CONF_ENTITY_ID, CONF_NAME, STATE_ON, STATE_UNAVAILABLE)
from homeassistant.core import State, callback
import homeassistant.helpers.config_validation as cv
from homeassistant.helpers.event import async_track_state_change
from homeassistant.helpers.typing import ConfigType, HomeAssistantType
from . import PLATFORM_SCHEMA, Light
_LOGGER = logging.getLogger(__name__)