Просмотр исходного кода

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

tags/v1.0.0
Dirk Alders 1 год назад
Родитель
Сommit
6b22855ab5
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

Загрузка…
Отмена
Сохранить