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,6 @@ from typing import Callable, List, Optional
|
|||
import attr
|
||||
import voluptuous as vol
|
||||
|
||||
from homeassistant.components import mqtt
|
||||
from homeassistant.components.automation import AutomationActionType
|
||||
from homeassistant.components.device_automation import TRIGGER_BASE_SCHEMA
|
||||
from homeassistant.const import CONF_DEVICE_ID, CONF_DOMAIN, CONF_PLATFORM, CONF_TYPE
|
||||
|
@ -28,6 +27,7 @@ from . import (
|
|||
debug_info,
|
||||
trigger as mqtt_trigger,
|
||||
)
|
||||
from .. import mqtt
|
||||
from .discovery import MQTT_DISCOVERY_UPDATED, clear_discovery_hash
|
||||
|
||||
_LOGGER = logging.getLogger(__name__)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue