fix(cgi-bin): add switch for is_on in set_power

main
Tsu-ba-me 4 years ago
parent 7ef54f08a4
commit ba93ae38d8
  1. 2
      cgi-bin/set_power

@ -161,7 +161,7 @@ if (not $is_decode_json_success)
my $anvil_uuid = exists $request_body->{anvil_uuid} ? $request_body->{anvil_uuid} : $anvil->data->{switches}{'anvil-uuid'};
my $host_uuid = exists $request_body->{host_uuid} ? $request_body->{host_uuid} : $anvil->data->{switches}{'host-uuid'};
my $is_on = exists $request_body->{is_on} ? $request_body->{is_on} : 0;
my $is_on = exists $request_body->{is_on} ? $request_body->{is_on} : $anvil->data->{switches}{'is-on'};
my $anvil_uuid_variable_name = "anvil UUID";
my $host_uuid_variable_name = "host UUID";

Loading…
Cancel
Save