From 2006ac750e74c2d64f058e01ce538f6bfe3dc413 Mon Sep 17 00:00:00 2001 From: CyanoFresh Date: Sat, 29 Jul 2017 21:37:15 +0300 Subject: [PATCH] Fixes --- modules/api/components/WebSocketAPIBridge.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/modules/api/components/WebSocketAPIBridge.php b/modules/api/components/WebSocketAPIBridge.php index 98c013f..8cced53 100644 --- a/modules/api/components/WebSocketAPIBridge.php +++ b/modules/api/components/WebSocketAPIBridge.php @@ -76,7 +76,7 @@ class WebSocketAPIBridge public function turnOn($itemID) { return $this->send([ - 'type' => 'turnON', + 'type' => 'turn_on', 'item_id' => $itemID, ]); } @@ -88,7 +88,7 @@ class WebSocketAPIBridge public function turnOff($itemID) { return $this->send([ - 'type' => 'turnOFF', + 'type' => 'turn_off', 'item_id' => $itemID, ]); }