def main():
    """Main function"""
    cam = HikCamObject('http://XXX.XXX.XXX.XXX', 80, 'user', 'password')

    entities = []

    for sensor, channel_list in cam.sensors.items():
        for channel in channel_list:
            entities.append(HikSensor(sensor, channel[1], cam))