Add configuration check and use default var names (#7963)
This commit is contained in:
1 parent
055db05946
commit
aaaf9637eb
2 files changed
+18
-8
No files matched your search
@@ -11,14 +11,14 @@ from homeassistant.components.light import (
|
||||
from homeassistant.components.lutron import (
|
||||
LutronDevice, LUTRON_DEVICES, LUTRON_CONTROLLER)
|
||||
|
||||
DEPENDENCIES = ['lutron']
|
||||
|
||||
_LOGGER = logging.getLogger(__name__)
|
||||
|
||||
DEPENDENCIES = ['lutron']
|
||||
|
||||
|
||||
# pylint: disable=unused-argument
|
||||
def setup_platform(hass, config, add_devices, discovery_info=None):
|
||||
"""Set up Lutron lights."""
|
||||
"""Set up the Lutron lights."""
|
||||
devs = []
|
||||
for (area_name, device) in hass.data[LUTRON_DEVICES]['light']:
|
||||
dev = LutronLight(area_name, device, hass.data[LUTRON_CONTROLLER])
|
||||
|
||||
Reference in new issue
Block a user