deCONZ use forward entry setup (#13990)
* Use forward entry setup with light platform * Move sensor to forward entry setup * Use forward entry setup with binary sensors * Use forward entry setup with scene platform * Remove import of unused functionality * Move deconz setup in to setup entry Create initial negative tests for setup entry * Fix hound comment * Improved tests * Add test for scene platform * Add test for binary sensor platform * Add test for light platform * Add test for light platform * Add test for sensor platform * Fix hound comment * More asserts on sensor types
This commit is contained in:
parent
5fe4053021
commit
8a10fcd985
13 changed files with 358 additions and 36 deletions
|
@ -13,10 +13,12 @@ DEPENDENCIES = ['deconz']
|
|||
|
||||
async def async_setup_platform(hass, config, async_add_devices,
|
||||
discovery_info=None):
|
||||
"""Set up scenes for deCONZ component."""
|
||||
if discovery_info is None:
|
||||
return
|
||||
"""Old way of setting up deCONZ scenes."""
|
||||
pass
|
||||
|
||||
|
||||
async def async_setup_entry(hass, config_entry, async_add_devices):
|
||||
"""Set up scenes for deCONZ component."""
|
||||
scenes = hass.data[DATA_DECONZ].scenes
|
||||
entities = []
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue