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

@@ -1,9 +1,10 @@
"""Support for August binary sensors."""
from datetime import datetime, timedelta
import logging
from datetime import timedelta, datetime
from homeassistant.components.august import DATA_AUGUST
from homeassistant.components.binary_sensor import (BinarySensorDevice)
from homeassistant.components.binary_sensor import BinarySensorDevice
from . import DATA_AUGUST
_LOGGER = logging.getLogger(__name__)
+2 -1
View File
@@ -3,9 +3,10 @@ from datetime import timedelta
import requests
from homeassistant.components.august import DATA_AUGUST, DEFAULT_TIMEOUT
from homeassistant.components.camera import Camera
from . import DATA_AUGUST, DEFAULT_TIMEOUT
DEPENDENCIES = ['august']
SCAN_INTERVAL = timedelta(seconds=5)
+3 -2
View File
@@ -1,11 +1,12 @@
"""Support for August lock."""
import logging
from datetime import timedelta
import logging
from homeassistant.components.august import DATA_AUGUST
from homeassistant.components.lock import LockDevice
from homeassistant.const import ATTR_BATTERY_LEVEL
from . import DATA_AUGUST
_LOGGER = logging.getLogger(__name__)
DEPENDENCIES = ['august']