:art: Not handle payload for chg_sta True

huangqimin001 3 anos atrás
pai
commit
b226b22a91
1 arquivos alterados com 1 adições e 1 exclusões
  1. 1 1
      api/eqpt_views.py

+ 1 - 1
api/eqpt_views.py

@@ -293,7 +293,7 @@ def mqtt_upload_temperature(payload):
293 293
 
294 294
     chg_sta = payload.get('chg_sta', False)
295 295
 
296
-    if not chg_sta:
296
+    if chg_sta:
297 297
         return
298 298
 
299 299
     macid = payload.get('mac', '')