Added Insteon Support

This commit is contained in:
Dean committed 2016-01-22 02:28:36 -05:00
1 parent 0acce86596
commit d59b98ee2b
6 files changed
+122 -1

No files matched your search

+16
View File
@@ -0,0 +1,16 @@
"""
homeassistant.components.light.insteon
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Support for Insteon Hub lights.
"""
from homeassistant.components.insteon import (INSTEON, InsteonToggleDevice)
def setup_platform(hass, config, add_devices, discovery_info=None):
""" Sets up the Insteon Hub light platform. """
devs = []
for device in INSTEON.devices:
if device.DeviceCategory == "Switched Lighting Control":
devs.append(InsteonToggleDevice(device))
add_devices(devs)