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:
1 parent
40ea30da96
commit
c2ed743237
8 files changed
+17
-36
No files matched your search
@@ -33,10 +33,6 @@ DEVICE_CLASS = {
|
||||
}
|
||||
|
||||
|
||||
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 binary sensor."""
|
||||
gateway = get_gateway_from_config_entry(hass, config_entry)
|
||||
|
||||
Reference in new issue
Block a user