Update statedata.be with stop() method (#23875)
Code was calling stop() when reinitialized, but method was not defined
This commit is contained in:
parent
4490284fb4
commit
1736c640f3
@ -35,6 +35,10 @@ class mqttdata_cls
|
||||
mqtt.subscribe("tele/#", /topic, idx, data, databytes -> self.handle_state_data(topic, idx, data, databytes))
|
||||
end
|
||||
|
||||
def stop()
|
||||
tasmota.remove_driver(self)
|
||||
end
|
||||
|
||||
def handle_state_data(full_topic, idx, data, databytes)
|
||||
import json
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user