def setup_platform(hass, config, add_devices, discovery_info=None):
    add_devices(
        [TwitchSensor(channel) for channel in config.get('channels', [])])
Setup the Twitch platform.
dataset/ETHPy150Open home-assistant/home-assistant/homeassistant/components/sensor/twitch.py/setup_platform