Skip to content

Commit

Permalink
Handle bool values as int on MQTT
Browse files Browse the repository at this point in the history
  • Loading branch information
Gerrit Beine committed Sep 19, 2024
1 parent 5cb1c1f commit 2f8b32a
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 @@ -68,7 +68,7 @@ def extract_payload_from_telegram(group_address, telegram):

try:
if dpt_type == 'DPTBinary':
value = str(bool(payload.value.value)).lower()
value = int(bool(payload.value.value))
else:
if dpt_type is None:
dpt_type = payload.value.__class__.__name__
Expand Down

0 comments on commit 2f8b32a

Please sign in to comment.