Skip to content

Commit

Permalink
Fix #11 Type error()
Browse files Browse the repository at this point in the history
See #11 for details
  • Loading branch information
Gerrit Beine committed Jan 13, 2025
1 parent 867059c commit 05ba737
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion knx2mqtt
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@ def create_payload_for_telegram(group_address, value):
payload = DPTBinary(int(str(value).lower() in ['true', '1', 'on', 'yes']))
else:
dpt_class = getattr(importlib.import_module(XKNX_DPT_MODULE_STR), dpt_type)
payload = DPTArray(dpt_class.to_knx(value))
payload = dpt_class.to_knx(value)
except Exception as e:
eprint(traceback.format_exc())

Expand Down

0 comments on commit 05ba737

Please sign in to comment.