From f90be50d2d732eff6231b6cd6d1261367cc58a8b Mon Sep 17 00:00:00 2001 From: Theo Arends <11044339+arendst@users.noreply.github.com> Date: Thu, 15 May 2025 14:27:56 +0200 Subject: [PATCH] Cleanup LoRaWan berry decoding --- tasmota/berry/lorawan/decoders/LwDecode.be | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/tasmota/berry/lorawan/decoders/LwDecode.be b/tasmota/berry/lorawan/decoders/LwDecode.be index 741639a61..7a0f3efd7 100644 --- a/tasmota/berry/lorawan/decoders/LwDecode.be +++ b/tasmota/berry/lorawan/decoders/LwDecode.be @@ -16,8 +16,7 @@ var LwDeco def LwDecode(data) import json - var LwData = type(data)=='string' ? json.load(data) : data - var deviceData = LwData['LwReceived'] + var deviceData = data['LwReceived'] var deviceName = deviceData.keys()() var Payload = deviceData[deviceName]['Payload'] var FPort = deviceData[deviceName]['FPort']