bugfix
This commit is contained in:
parent
ce0f6ebd7c
commit
48a139cdd5
1 changed files with 1 additions and 1 deletions
|
|
@ -251,7 +251,7 @@ public class SmartHomeImpl extends SmartHomeApp implements TokenRegistrationList
|
||||||
}
|
}
|
||||||
|
|
||||||
for (ExecuteRequest.Inputs.Payload.Commands.Execution execution : command.execution) {
|
for (ExecuteRequest.Inputs.Payload.Commands.Execution execution : command.execution) {
|
||||||
if ("action.devices.traits.OnOff".equals(execution.command)) { // TODO: This looks ugly!
|
if ("action.devices.commands.OnOff".equals(execution.command)) { // TODO: This looks ugly!
|
||||||
new OnOffTrait().execute(device, execution);
|
new OnOffTrait().execute(device, execution);
|
||||||
} else
|
} else
|
||||||
throw new UnsupportedOperationException("Unsupported command requested: " + execution.command);
|
throw new UnsupportedOperationException("Unsupported command requested: " + execution.command);
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue