瀏覽代碼

Bug-Fix all-off functionality removed due to missing device

videv_dev
Dirk Alders 1 年之前
父節點
當前提交
a33f9b23da
共有 1 個文件被更改,包括 10 次插入10 次删除
  1. 10
    10
      function/__init__.py

+ 10
- 10
function/__init__.py 查看文件

@@ -62,16 +62,16 @@ class all_functions(object):
62 62
 
63 63
     def init_off_functionality(self):
64 64
         ##### TEMPORARY ###################################################################################################################
65
-        # Off Buttons
66
-        self.gui_button_all_off = devices.nodered_gui_button(self.mqtt_client, "gui/all/common/off/button")
67
-        self.gui_button_gfw_off = devices.nodered_gui_button(self.mqtt_client, "gui/gfw/common/off/button")
68
-        self.gui_button_ffw_off = devices.nodered_gui_button(self.mqtt_client, "gui/ffw/common/off/button")
69
-        self.gui_button_ffe_off = devices.nodered_gui_button(self.mqtt_client, "gui/ffe/common/off/button")
70
-        #
71
-        self.gui_button_all_off.add_callback(devices.nodered_gui_button.KEY_STATE, True, self.all_off)
72
-        self.gui_button_gfw_off.add_callback(devices.nodered_gui_button.KEY_STATE, True, self.gfw_off)
73
-        self.gui_button_ffw_off.add_callback(devices.nodered_gui_button.KEY_STATE, True, self.ffw_off)
74
-        self.gui_button_ffe_off.add_callback(devices.nodered_gui_button.KEY_STATE, True, self.ffe_off)
65
+        # # Off Buttons
66
+        # self.gui_button_all_off = devices.nodered_gui_button(self.mqtt_client, "gui/all/common/off/button")
67
+        # self.gui_button_gfw_off = devices.nodered_gui_button(self.mqtt_client, "gui/gfw/common/off/button")
68
+        # self.gui_button_ffw_off = devices.nodered_gui_button(self.mqtt_client, "gui/ffw/common/off/button")
69
+        # self.gui_button_ffe_off = devices.nodered_gui_button(self.mqtt_client, "gui/ffe/common/off/button")
70
+        # #
71
+        # self.gui_button_all_off.add_callback(devices.nodered_gui_button.KEY_STATE, True, self.all_off)
72
+        # self.gui_button_gfw_off.add_callback(devices.nodered_gui_button.KEY_STATE, True, self.gfw_off)
73
+        # self.gui_button_ffw_off.add_callback(devices.nodered_gui_button.KEY_STATE, True, self.ffw_off)
74
+        # self.gui_button_ffe_off.add_callback(devices.nodered_gui_button.KEY_STATE, True, self.ffe_off)
75 75
         ##### TEMPORARY ###################################################################################################################
76 76
 
77 77
         # ALL OFF - Long push stairway

Loading…
取消
儲存