bug-fix: logging
This commit is contained in:
parent
0dda549124
commit
439ddbedf2
@ -176,8 +176,8 @@ class ground_floor_west_dirk(room_shelly_tradfri_light):
|
|||||||
|
|
||||||
def desk_light_switch_action(self, device, key, data):
|
def desk_light_switch_action(self, device, key, data):
|
||||||
if device == self.button_tradfri:
|
if device == self.button_tradfri:
|
||||||
logger.info("Toggeling \"%s\" desk light to %s", type(
|
logger.info("Toggeling \"%s\" desk light to %s", type(self).__name__,
|
||||||
self).__name__, not self, self.powerplug_common.get(self.KEY_POWERPLUG_AMPLIFIER))
|
not self.powerplug_common.get(self.KEY_POWERPLUG_DESK_LIGHT))
|
||||||
self.powerplug_common.set_output(self.KEY_POWERPLUG_AMPLIFIER, "toggle")
|
self.powerplug_common.set_output(self.KEY_POWERPLUG_AMPLIFIER, "toggle")
|
||||||
else:
|
else:
|
||||||
logger.info("Setting \"%s\" desk light: %s", type(self).__name__, data)
|
logger.info("Setting \"%s\" desk light: %s", type(self).__name__, data)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user