setThermostatMode method

Future<void> setThermostatMode(
  1. String deviceId,
  2. AvailableThermostatMode mode, {
  3. SetModeFunction setMode = ThermostatRepository.setMode,
})

Implementation

Future<void> setThermostatMode(String deviceId, AvailableThermostatMode mode,
    {SetModeFunction setMode = ThermostatRepository.setMode}) async {
  return performAction(
      mode, () => getModeState, () => setMode(_request, deviceId, mode));
}