Skip to content

Commit

Permalink
Merge pull request #162 from marleyjaffe/patch-1
Browse files Browse the repository at this point in the history
Update Readme Example
  • Loading branch information
unixorn authored Jan 1, 2024
2 parents 911da4f + 1735c85 commit 0bb85e2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -438,7 +438,7 @@ def my_callback(client: Client, user_data, message: MQTTMessage):
logging.info(f"Received {number} from HA")
do_some_custom_thing(number)
# Send an MQTT message to confirm to HA that the number was changed
my_text.set_value(number)
my_number.set_value(number)

# Define an optional object to be passed back to the callback
user_data = "Some custom data"
Expand Down

0 comments on commit 0bb85e2

Please sign in to comment.