Browse Source

bug-fix: logging

tags/v1.0.0
Dirk Alders 2 years ago
parent
commit
439ddbedf2
1 changed files with 2 additions and 2 deletions
  1. 2
    2
      function/ground_floor_west.py

+ 2
- 2
function/ground_floor_west.py View File

176
 
176
 
177
     def desk_light_switch_action(self, device, key, data):
177
     def desk_light_switch_action(self, device, key, data):
178
         if device == self.button_tradfri:
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
             self.powerplug_common.set_output(self.KEY_POWERPLUG_AMPLIFIER, "toggle")
181
             self.powerplug_common.set_output(self.KEY_POWERPLUG_AMPLIFIER, "toggle")
182
         else:
182
         else:
183
             logger.info("Setting \"%s\" desk light: %s", type(self).__name__, data)
183
             logger.info("Setting \"%s\" desk light: %s", type(self).__name__, data)

Loading…
Cancel
Save