diff --git a/example/tasmota_led_ir_with_ui.py b/example/tasmota_led_ir_with_ui.py index d907ed43..a538a6c4 100644 --- a/example/tasmota_led_ir_with_ui.py +++ b/example/tasmota_led_ir_with_ui.py @@ -36,7 +36,7 @@ LogListDataSpec(ir_log) ])) # Send the IR commands received by the Tasmota device to the in-memory log -tasmota_led.ir_receiver().connect(ir_log, convert=(lambda v: v.hex(), lambda x: x)) +tasmota_led.ir_receiver().connect(ir_log, convert=(lambda v: v.hex(), lambda x: x.encode())) # State variables for on/off, dimmer and RGB color of the Tasmota device power = shc.Variable(bool)\