@@ -83,7 +83,7 @@ class ApiClient
end
def state_path(params = {})
- "/gateways/#{params[:id]}/#{params[:type]}/#{params[:group_id]}"
+ "/gateways/#{params[:id]}/#{params[:type]}/#{params[:group_id]}?blockOnQueue=true"
def delete_state(params = {})
@@ -139,7 +139,7 @@ RSpec.describe 'REST Server' do
it 'should update state for known alias' do
- path = "/gateways/#{@alias}"
+ path = "/gateways/#{@alias}?blockOnQueue=true"
@client.put(path, status: 'ON', hue: 100)
state = @client.get(path)
@@ -493,7 +493,7 @@ var updateGroup = _.throttle(
function(params) {
try {
$.ajax({
- url: activeUrl(),
+ url: activeUrl() + "?blockOnQueue=true",
method: 'PUT',
data: JSON.stringify(params),
contentType: 'application/json',