Bläddra i källkod

another bug-fix...

tags/v1.0.0
Dirk Alders 2 år sedan
förälder
incheckning
931f1c9809
2 ändrade filer med 4 tillägg och 3 borttagningar
  1. 1
    0
      function/__init__.py
  2. 3
    3
      function/ground_floor_west.py

+ 1
- 0
function/__init__.py Visa fil

@@ -15,6 +15,7 @@ except ImportError:
15 15
     ROOT_LOGGER_NAME = 'root'
16 16
 logger = logging.getLogger(ROOT_LOGGER_NAME).getChild(__name__)
17 17
 
18
+# TODO: usage of implementation strategy from gfw_dirk for ffe_sleep_madi
18 19
 # TODO: implement garland (incl. day events like sunset, sunrise, ...)
19 20
 # TODO: implement warning message
20 21
 

+ 3
- 3
function/ground_floor_west.py Visa fil

@@ -178,7 +178,7 @@ class ground_floor_west_dirk(room_shelly_tradfri_light):
178 178
         if device == self.button_tradfri:
179 179
             logger.info("Toggeling \"%s\" desk light to %s", type(self).__name__,
180 180
                         not self.powerplug_common.get(self.KEY_POWERPLUG_DESK_LIGHT))
181
-            self.powerplug_common.set_output(self.KEY_POWERPLUG_AMPLIFIER, "toggle")
181
+            self.powerplug_common.set_output(self.KEY_POWERPLUG_DESK_LIGHT, "toggle")
182 182
         else:
183 183
             logger.info("Setting \"%s\" desk light: %s", type(self).__name__, data)
184 184
             self.powerplug_common.set_output(self.KEY_POWERPLUG_DESK_LIGHT, data)
@@ -252,7 +252,7 @@ class ground_floor_west_dirk(room_shelly_tradfri_light):
252 252
         elif state == self.STATE_ACTIVE_DEVICE_AMPLIFIER:
253 253
             return self.powerplug_common.get(self.KEY_POWERPLUG_AMPLIFIER)
254 254
 
255
-    def choose_next_device(self, device=None, key=None, data=None):
255
+    def choose_prev_device(self, device=None, key=None, data=None):
256 256
         if self.active_device_state is not None:
257 257
             start_value = self.active_device_state
258 258
             for i in range(0, self.STATE_ACTIVE_DEVICE_MAX_VALUE + 1):
@@ -264,7 +264,7 @@ class ground_floor_west_dirk(room_shelly_tradfri_light):
264 264
                     return
265 265
         self.active_device_state = None
266 266
 
267
-    def choose_prev_device(self, device=None, key=None, data=None):
267
+    def choose_next_device(self, device=None, key=None, data=None):
268 268
         if self.active_device_state is not None:
269 269
             start_value = self.active_device_state
270 270
             for i in range(0, self.STATE_ACTIVE_DEVICE_MAX_VALUE + 1):

Laddar…
Avbryt
Spara