Update statedata.be with stop() method (#23875)

Code was calling stop() when reinitialized, but method was not defined
This commit is contained in:
sfromis 2025-09-06 08:38:05 +02:00 committed by GitHub
parent 4490284fb4
commit 1736c640f3
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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