public static void SetCoolingThresholdTemperatureFeedback(string name, ushort value) { if (Thermostats[Thermostats.FindIndex(i => i.Name == name)].CoolingThresholdTemperature != HBThermostatExtension.FtoC(value)) { Thermostats[Thermostats.FindIndex(i => i.Name == name)].CoolingThresholdTemperature = HBThermostatExtension.FtoC(value); UpdateCoolingThresholdTemperatureFeedback(name); } }