File tree Expand file tree Collapse file tree 2 files changed +2
-2
lines changed
custom_components/pyscript Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -48,7 +48,7 @@ async def mqtt_message_handler(mqttmsg):
48
48
}
49
49
50
50
try :
51
- func_args ["payload_json " ] = json .loads (mqttmsg .payload )
51
+ func_args ["payload_obj " ] = json .loads (mqttmsg .payload )
52
52
except ValueError :
53
53
pass
54
54
Original file line number Diff line number Diff line change @@ -584,7 +584,7 @@ these four variables:
584
584
- ``trigger_type `` is set to “mqtt”
585
585
- ``topic `` is set to the topic the message was received on
586
586
- ``payload `` is set to the string payload of the message
587
- - ``payload_json `` if the payload was valid JSON, this will be set to the native python object
587
+ - ``payload_obj `` if the payload was valid JSON, this will be set to the native python object
588
588
representing that payload.
589
589
590
590
When the ``@mqtt_trigger `` occurs, those same variables are passed as keyword arguments to the
You can’t perform that action at this time.
0 commit comments