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,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__)