Closed emontnemery closed 5 years ago
The problem is these lines in async_device_message_received
in mqtt/discovery.py:
if platform not in CONFIG_ENTRY_PLATFORMS.get(component, []):
await async_load_platform(
hass, component, platform, payload, hass_config)
return
This will cause all but the 1st device that is discovered before async_load_platform() is finished to fail. @balloob How to fix this in a proper way?
MQTT Discovery broken after merge of #16904 + 16918
Home Assistant release with the issue: SHA: af89e7c50f65afb233341525eb81d6dcc6ba599f
Last working Home Assistant release (if known): 720b05c301f1a22128839b71e8589b26623c33a1
Operating environment (Hass.io/Docker/Windows/etc.): WSL
Component/platform: MQTT Discovery
Description of problem: MQTT Discovery fails to discover more than one device per platform.
Reproduction steps:
Problem-relevant
configuration.yaml
entries and (fill out even if it seems unimportant):Traceback (if applicable):