Add discovery_info check to LCN light platform (#20280)
* Added discovery_info check to LCN light platform * Removed whitespaces
This commit is contained in:
parent
362ac725bf
commit
d5dcb8f140
1 changed files with 3 additions and 0 deletions
|
@ -19,6 +19,9 @@ DEPENDENCIES = ['lcn']
|
||||||
async def async_setup_platform(hass, hass_config, async_add_entities,
|
async def async_setup_platform(hass, hass_config, async_add_entities,
|
||||||
discovery_info=None):
|
discovery_info=None):
|
||||||
"""Set up the LCN light platform."""
|
"""Set up the LCN light platform."""
|
||||||
|
if discovery_info is None:
|
||||||
|
return
|
||||||
|
|
||||||
import pypck
|
import pypck
|
||||||
|
|
||||||
devices = []
|
devices = []
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue