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 2019-03-20 22:56:46 -07:00 committed by GitHub
parent ab17b22239
commit 4b1de61110
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
522 changed files with 1834 additions and 1725 deletions

View file

@ -1,16 +1,17 @@
"""Support for Luftdaten sensors."""
import logging
from homeassistant.components.luftdaten import (
DATA_LUFTDATEN, DATA_LUFTDATEN_CLIENT, DEFAULT_ATTRIBUTION, DOMAIN,
SENSORS, TOPIC_UPDATE)
from homeassistant.components.luftdaten.const import ATTR_SENSOR_ID
from homeassistant.const import (
ATTR_ATTRIBUTION, ATTR_LATITUDE, ATTR_LONGITUDE, CONF_SHOW_ON_MAP)
from homeassistant.core import callback
from homeassistant.helpers.dispatcher import async_dispatcher_connect
from homeassistant.helpers.entity import Entity
from . import (
DATA_LUFTDATEN, DATA_LUFTDATEN_CLIENT, DEFAULT_ATTRIBUTION, DOMAIN,
SENSORS, TOPIC_UPDATE)
from .const import ATTR_SENSOR_ID
_LOGGER = logging.getLogger(__name__)
DEPENDENCIES = ['luftdaten']