Improve deCONZ platforms (#40986)

* Use platform domain imports with the list of supported platforms

* Remove legacy async_setup_platform from platforms
This commit is contained in:
Robert Svensson authored and GitHub committed 2020-10-01 19:06:20 +02:00
1 parent 40ea30da96
commit c2ed743237
8 files changed
+17 -36

No files matched your search

@@ -19,10 +19,6 @@ from .gateway import get_gateway_from_config_entry
SUPPORT_HVAC = [HVAC_MODE_AUTO, HVAC_MODE_HEAT, HVAC_MODE_OFF]
async def async_setup_platform(hass, config, async_add_entities, discovery_info=None):
"""Old way of setting up deCONZ platforms."""
async def async_setup_entry(hass, config_entry, async_add_entities):
"""Set up the deCONZ climate devices.