diff --git a/function/ground_floor_west.py b/function/ground_floor_west.py index ad87f82..72baaf4 100644 --- a/function/ground_floor_west.py +++ b/function/ground_floor_west.py @@ -173,7 +173,7 @@ class ground_floor_west_dirk(room_shelly_tradfri_light): def desk_light_switch_action(self, device, key, data): if device == self.button_tradfri: logger.info("Toggeling \"%s\" desk light to %s", type( - self).__name__, not self.get(self.KEY_POWERPLUG_AMPLIFIER)) + self).__name__, not self, self.powerplug_common.get(self.KEY_POWERPLUG_AMPLIFIER)) self.powerplug_common.set_output(self.KEY_POWERPLUG_AMPLIFIER, "toggle") else: logger.info("Setting \"%s\" desk light: %s", type(self).__name__, data)