def setup_platform(hass, config, add_entities, discovery_info=None):
    add_entities([
        ZigBeeSwitch(hass, ZigBeeDigitalOutConfig(config))
    ])
Hijack the main loop from the original thread and listen on events on the Redis
dataset/ETHPy150Open home-assistant/home-assistant/homeassistant/components/switch/zigbee.py/setup_platform--crossover with--dataset/ETHPy150Open jrief/django-websocket-redis/ws4redis/wsgi_server.py/WebsocketWSGIServer.__call__