You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
def add_topic_callback(self, mqtt_topic, callback_method):
"""Registers a callback_method for a specific MQTT topic.
:param str mqtt_topic: MQTT topic identifier.
:param str callback_method: Name of callback method.
"""
As you can see, the docstring indicates that both method arguments are strings. I believe this is an error though. Shouldn't the second argument callback_method be a method instead of a string?
The text was updated successfully, but these errors were encountered:
The method signature of
MQTT.add_topic_callback(..)
on line 367 of adafruit_minimqtt.py is:As you can see, the docstring indicates that both method arguments are strings. I believe this is an error though. Shouldn't the second argument
callback_method
be a method instead of a string?The text was updated successfully, but these errors were encountered: