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 2020-10-01 19:06:20 +02:00 committed by GitHub
parent 40ea30da96
commit c2ed743237
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
8 changed files with 17 additions and 36 deletions

View file

@ -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.