setThermostatMode method
Future<void>
setThermostatMode(
- String deviceId,
- AvailableThermostatMode mode, {
- 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));
}