Sfoglia il codice sorgente

bug-fix: logging

tags/v1.0.0
Dirk Alders 2 anni fa
parent
commit
439ddbedf2
1 ha cambiato i file con 2 aggiunte e 2 eliminazioni
  1. 2
    2
      function/ground_floor_west.py

+ 2
- 2
function/ground_floor_west.py Vedi File

@@ -176,8 +176,8 @@ class ground_floor_west_dirk(room_shelly_tradfri_light):
176 176
 
177 177
     def desk_light_switch_action(self, device, key, data):
178 178
         if device == self.button_tradfri:
179
-            logger.info("Toggeling \"%s\" desk light to %s", type(
180
-                self).__name__, not self, self.powerplug_common.get(self.KEY_POWERPLUG_AMPLIFIER))
179
+            logger.info("Toggeling \"%s\" desk light to %s", type(self).__name__,
180
+                        not self.powerplug_common.get(self.KEY_POWERPLUG_DESK_LIGHT))
181 181
             self.powerplug_common.set_output(self.KEY_POWERPLUG_AMPLIFIER, "toggle")
182 182
         else:
183 183
             logger.info("Setting \"%s\" desk light: %s", type(self).__name__, data)

Loading…
Annulla
Salva