Browse Source

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

videv_dev
Dirk Alders 1 year ago
parent
commit
a33f9b23da
1 changed files with 10 additions and 10 deletions
  1. 10
    10
      function/__init__.py

+ 10
- 10
function/__init__.py View File

62
 
62
 
63
     def init_off_functionality(self):
63
     def init_off_functionality(self):
64
         ##### TEMPORARY ###################################################################################################################
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
         ##### TEMPORARY ###################################################################################################################
75
         ##### TEMPORARY ###################################################################################################################
76
 
76
 
77
         # ALL OFF - Long push stairway
77
         # ALL OFF - Long push stairway

Loading…
Cancel
Save