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:
parent
40ea30da96
commit
c2ed743237
8 changed files with 17 additions and 36 deletions
|
@ -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.
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue