From 1736c640f3f4f2544b1db4198bb71d1c8b40f6ca Mon Sep 17 00:00:00 2001 From: sfromis <47082390+sfromis@users.noreply.github.com> Date: Sat, 6 Sep 2025 08:38:05 +0200 Subject: [PATCH] Update statedata.be with stop() method (#23875) Code was calling stop() when reinitialized, but method was not defined --- tasmota/berry/examples/statedata.be | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/tasmota/berry/examples/statedata.be b/tasmota/berry/examples/statedata.be index f208abc01..bbfd4ee08 100644 --- a/tasmota/berry/examples/statedata.be +++ b/tasmota/berry/examples/statedata.be @@ -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