1
0
mirror of https://github.com/home-assistant/core.git synced 2025-12-24 21:06:19 +00:00

Small cleanup of MQTT platforms (#20503)

* Move CONF_UNIQUE_ID to init

* Sort imports

* Update ordering
This commit is contained in:
emontnemery
2019-01-27 18:54:52 +01:00
committed by Fabian Affolter
parent 8804f55fcc
commit 648adcc708
34 changed files with 225 additions and 247 deletions

View File

@@ -1,17 +1,17 @@
"""The tests for the MQTT component."""
import asyncio
import ssl
import unittest
from unittest import mock
import ssl
import pytest
import voluptuous as vol
from homeassistant.components import mqtt
from homeassistant.const import (
ATTR_DOMAIN, ATTR_SERVICE, EVENT_CALL_SERVICE, EVENT_HOMEASSISTANT_STOP)
from homeassistant.core import callback
from homeassistant.setup import async_setup_component
from homeassistant.components import mqtt
from homeassistant.const import (EVENT_CALL_SERVICE, ATTR_DOMAIN, ATTR_SERVICE,
EVENT_HOMEASSISTANT_STOP)
from tests.common import (
MockConfigEntry, async_fire_mqtt_message, async_mock_mqtt_component,