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:
parent
9651d1bcfa
commit
97edbaa85f
25 changed files with 92 additions and 89 deletions
|
@ -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
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue