|
@@ -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)
|