From 34c8e06cd8cbaa753c68b593493516a6f83c5cdd Mon Sep 17 00:00:00 2001 From: unknown Date: Mon, 4 Sep 2023 19:38:03 +0800 Subject: [PATCH] fix a JSON field error --- custom_components/midea_meiju_codec/core/lua_runtime.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/custom_components/midea_meiju_codec/core/lua_runtime.py b/custom_components/midea_meiju_codec/core/lua_runtime.py index 28c1f44..a051ae9 100644 --- a/custom_components/midea_meiju_codec/core/lua_runtime.py +++ b/custom_components/midea_meiju_codec/core/lua_runtime.py @@ -37,7 +37,7 @@ class MideaCodec(LuaRuntime): if self._sn is not None: device_info["deviceSN"] = self._sn if self._sub_type is not None: - device_info["deviceSN"] = self._sub_type + device_info["deviceSubType"] = self._sub_type base_dict = { "deviceinfo": device_info }