def demo():
hub = Hub()<EOL>if hub.available:<EOL><INDENT>LOGGER.info("<STR_LIT>")<EOL><DEDENT>else:<EOL><INDENT>LOGGER.info("<STR_LIT>")<EOL><DEDENT>bulbs = hub.get_lights()<EOL>light = get_bulb(ZID_TO_TEST, bulbs)<EOL>if light is not None:<EOL><INDENT>if light.available:<EOL><INDENT>LOGGER.info("<STR_LIT>")<EOL>assert light.available<EOL>light.turn_on()<EOL>time.sleep(SECONDS_TO_WAIT)<EOL>assert light.is_on<EOL>light.update()<EOL>light.update()<EOL>light.set_rgb_color(<NUM_LIT:0>, <NUM_LIT:255>, <NUM_LIT:255>)<EOL>time.sleep(SECONDS_TO_WAIT)<EOL>light.update()<EOL>assert light.rgb_color == [<NUM_LIT:0>, <NUM_LIT:255>, <NUM_LIT:255>]<EOL>light.set_brightness(<NUM_LIT>)<EOL>time.sleep(SECONDS_TO_WAIT)<EOL>assert light.brightness == <NUM_LIT><EOL>assert light.is_on<EOL>light.turn_off()<EOL>time.sleep(SECONDS_TO_WAIT)<EOL>assert not light.is_on<EOL>light.set_all(<NUM_LIT>, <NUM_LIT>, <NUM_LIT>, <NUM_LIT>)<EOL>time.sleep(SECONDS_TO_WAIT)<EOL>LOGGER.info("<STR_LIT>", light.rgb_color,<EOL>light.brightness)<EOL>assert light.brightness == <NUM_LIT><EOL>assert light.rgb_color == [<NUM_LIT>, <NUM_LIT>, <NUM_LIT>]<EOL>light.turn_off()<EOL><DEDENT>else:<EOL><INDENT>LOGGER.info("<STR_LIT>")<EOL><DEDENT><DEDENT>else:<EOL><INDENT>LOGGER.error("<STR_LIT>")<EOL><DEDENT>
Demo some specific functionality. Needs to be customised.