setPointAction method

Future<void> setPointAction(
  1. String deviceId,
  2. double temperature, {
  3. SetPointActionFunction setPoint = ThermostatRepository.setPointThermostat,
})

Implementation

Future<void> setPointAction(String deviceId, double temperature,
    {SetPointActionFunction setPoint =
        ThermostatRepository.setPointThermostat}) async {
  return performAction<double>(temperature, () => getTargetTemperatureState,
      () => setPoint(_request, deviceId, temperature));
}