Use constants (#5390)
This commit is contained in:
1 parent
cfc936761b
commit
bfc0a6a17c
3 files changed
+28
-16
No files matched your search
@@ -5,8 +5,11 @@ For more details about this platform, please refer to the documentation at
|
||||
https://home-assistant.io/components/light.qwikswitch/
|
||||
"""
|
||||
import logging
|
||||
|
||||
import homeassistant.components.qwikswitch as qwikswitch
|
||||
|
||||
_LOGGER = logging.getLogger(__name__)
|
||||
|
||||
DEPENDENCIES = ['qwikswitch']
|
||||
|
||||
|
||||
@@ -14,7 +17,7 @@ DEPENDENCIES = ['qwikswitch']
|
||||
def setup_platform(hass, config, add_devices, discovery_info=None):
|
||||
"""Add lights from the main Qwikswitch component."""
|
||||
if discovery_info is None:
|
||||
logging.getLogger(__name__).error('Configure Qwikswitch Component.')
|
||||
_LOGGER.error("Configure Qwikswitch component")
|
||||
return False
|
||||
|
||||
add_devices(qwikswitch.QSUSB['light'])
|
||||
|
||||
Reference in new issue
Block a user