Small cleanup of MQTT (#44110)

* Use relative imports of mqtt component in mqtt platforms

* Correct parameters to _async_setup_entity

* Lint
This commit is contained in:
Erik Montnemery 2020-12-10 21:30:07 +01:00 committed by GitHub
parent 9651d1bcfa
commit 97edbaa85f
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
25 changed files with 92 additions and 89 deletions

View file

@ -5,7 +5,7 @@ from typing import Optional
import voluptuous as vol
from homeassistant.components import mqtt, sensor
from homeassistant.components import sensor
from homeassistant.components.sensor import DEVICE_CLASSES_SCHEMA
from homeassistant.const import (
CONF_DEVICE,
@ -38,6 +38,7 @@ from . import (
MqttEntityDeviceInfo,
subscription,
)
from .. import mqtt
from .debug_info import log_messages
from .discovery import MQTT_DISCOVERY_NEW, clear_discovery_hash