From 48a139cdd5be069db498ecbe706950d87fc40963 Mon Sep 17 00:00:00 2001 From: Ziver Koc Date: Mon, 30 Aug 2021 01:52:38 +0200 Subject: [PATCH] bugfix --- .../src/se/hal/plugin/assistant/google/SmartHomeImpl.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugins/hal-assistant-google/src/se/hal/plugin/assistant/google/SmartHomeImpl.java b/plugins/hal-assistant-google/src/se/hal/plugin/assistant/google/SmartHomeImpl.java index f995cabb..a150f030 100644 --- a/plugins/hal-assistant-google/src/se/hal/plugin/assistant/google/SmartHomeImpl.java +++ b/plugins/hal-assistant-google/src/se/hal/plugin/assistant/google/SmartHomeImpl.java @@ -251,7 +251,7 @@ public class SmartHomeImpl extends SmartHomeApp implements TokenRegistrationList } 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); } else throw new UnsupportedOperationException("Unsupported command requested: " + execution.command);