def get_command_class_value(self, command_class, index):
    for ccv in self.zwave_command_class_values:
      if ccv.command_class == command_class and ccv.index == index:
        return ccv
    ccv = CommandClassValue(command_class=command_class, index=index)
    self.zwave_command_class_values.append(ccv)
    return ccv
Find the given (command_class, index) or create a new one.
dataset/ETHPy150Open tomwilkie/awesomation/src/appengine/devices/zwave.py/ZWaveDevice.get_command_class_value