Fix MQTT discovery (#17004)
This commit is contained in:
parent
b24f9f5dfa
commit
760f822dce
1 changed files with 1 additions and 1 deletions
|
@ -120,9 +120,9 @@ async def async_start(hass: HomeAssistantType, discovery_topic, hass_config,
|
||||||
|
|
||||||
config_entries_key = '{}.{}'.format(component, platform)
|
config_entries_key = '{}.{}'.format(component, platform)
|
||||||
if config_entries_key not in hass.data[CONFIG_ENTRY_IS_SETUP]:
|
if config_entries_key not in hass.data[CONFIG_ENTRY_IS_SETUP]:
|
||||||
|
hass.data[CONFIG_ENTRY_IS_SETUP].add(config_entries_key)
|
||||||
await hass.config_entries.async_forward_entry_setup(
|
await hass.config_entries.async_forward_entry_setup(
|
||||||
config_entry, component)
|
config_entry, component)
|
||||||
hass.data[CONFIG_ENTRY_IS_SETUP].add(config_entries_key)
|
|
||||||
|
|
||||||
async_dispatcher_send(hass, MQTT_DISCOVERY_NEW.format(
|
async_dispatcher_send(hass, MQTT_DISCOVERY_NEW.format(
|
||||||
component, platform), payload)
|
component, platform), payload)
|
||||||
|
|
Loading…
Add table
Reference in a new issue