mirror of
https://github.com/home-assistant/core.git
synced 2025-04-26 02:07:54 +00:00
17 lines
504 B
Python
17 lines
504 B
Python
"""
|
|
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)
|