Andre0512 / Andre0512/pyhOn

Patch: Propagate Real MQTT Payload to Update Callback

Ouverte
#35 0 commentaires 0 réactions 0 personnes assignées Voir sur GitHub
Langage dominant
Python
Étoiles
499
Forks
1.7k
Métriques de merge des PR
Aucune PR mergée en 30 j

Description

This patch enhances the `notify()` mechanism in the pyhOn library so that the actual MQTT message payload is passed through to user callbacks
instead of always sending `None`. It updates the signature of `Hon.notify()` to accept an `evt` argument and modifies the MQTT client’s
`_on_publish_received` handler to forward the decoded payload, enabling real‐time parameter updates (e.g. `remainingTimeMM`) to be received by
client code.

[patch.txt](https://github.com/user-attachments/files/21763392/patch.txt)

Guide de contribution

Aucun guide de contribution indexé pour ce dépôt

Évaluation

Cette issue n'a pas encore été évaluée.

Recevez les nouvelles issues par e-mail

Un résumé court des issues GitHub adaptées aux débutants.