From 7791bafb9e07cc7b325e2f01b0f54e19bb034f19 Mon Sep 17 00:00:00 2001 From: Michael Thies Date: Mon, 20 Nov 2023 21:31:19 +0100 Subject: [PATCH] examples: Fix type in convert in tasmota_led_ir_with_ui example --- example/tasmota_led_ir_with_ui.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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)\