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

@@ -8,10 +8,6 @@ from .deconz_device import DeconzDevice
from .gateway import get_gateway_from_config_entry
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 switches for deCONZ component.