mirror of
https://github.com/home-assistant/core.git
synced 2025-07-16 09:47:13 +00:00
parent
c625e219c7
commit
06bc062221
@ -10,7 +10,6 @@ import logging
|
|||||||
import re
|
import re
|
||||||
|
|
||||||
import homeassistant.components.mqtt as mqtt
|
import homeassistant.components.mqtt as mqtt
|
||||||
from homeassistant.components.mqtt import DOMAIN
|
|
||||||
from homeassistant.helpers.discovery import async_load_platform
|
from homeassistant.helpers.discovery import async_load_platform
|
||||||
from homeassistant.const import CONF_PLATFORM
|
from homeassistant.const import CONF_PLATFORM
|
||||||
from homeassistant.components.mqtt import CONF_STATE_TOPIC
|
from homeassistant.components.mqtt import CONF_STATE_TOPIC
|
||||||
@ -66,7 +65,7 @@ def async_start(hass, discovery_topic, hass_config):
|
|||||||
discovery_topic, component, object_id)
|
discovery_topic, component, object_id)
|
||||||
|
|
||||||
yield from async_load_platform(
|
yield from async_load_platform(
|
||||||
hass, component, DOMAIN, payload, hass_config)
|
hass, component, platform, payload, hass_config)
|
||||||
|
|
||||||
yield from mqtt.async_subscribe(
|
yield from mqtt.async_subscribe(
|
||||||
hass, discovery_topic + '/#', async_device_message_received, 0)
|
hass, discovery_topic + '/#', async_device_message_received, 0)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user