Skip to content

Commit

Permalink
examples: Fix type in convert in tasmota_led_ir_with_ui example
Browse files Browse the repository at this point in the history
  • Loading branch information
mhthies committed Nov 20, 2023
1 parent 5c8aac1 commit 7791baf
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion example/tasmota_led_ir_with_ui.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)\
Expand Down

0 comments on commit 7791baf

Please sign in to comment.