Skip to content

Commit 7edbfa2

Browse files
authored
Changes encoding to kwarg in Mqtt.notify_add call
1 parent 3632b51 commit 7edbfa2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

custom_components/pyscript/trigger.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -360,7 +360,7 @@ async def wait_until(
360360
if len(state_trig_ident) > 0:
361361
State.notify_del(state_trig_ident, notify_q)
362362
raise exc
363-
await Mqtt.notify_add(mqtt_trigger[0], notify_q, mqtt_trigger_encoding)
363+
await Mqtt.notify_add(mqtt_trigger[0], notify_q, encoding=mqtt_trigger_encoding)
364364
if webhook_trigger is not None:
365365
if isinstance(webhook_trigger, str):
366366
webhook_trigger = [webhook_trigger]

0 commit comments

Comments
 (0)