Do not set up DSM when setting up Nest legacy (#42406)

This commit is contained in:
Paulus Schoutsen 2020-10-26 16:40:43 +01:00
parent 3ec83dc29e
commit 287b33eef3

View file

@ -14,4 +14,6 @@ async def async_setup_entry(
"""Set up the sensors."""
if DATA_SDM not in entry.data:
await async_setup_legacy_entry(hass, entry, async_add_entities)
return
await async_setup_sdm_entry(hass, entry, async_add_entities)