Skip to content

Commit

Permalink
Merge pull request #77 from mdegat01/shutdown-args
Browse files Browse the repository at this point in the history
Accept and ignore positional arguments shutdown
  • Loading branch information
mdegat01 authored Aug 30, 2022
2 parents befb5a5 + 0cb8708 commit 3f2a7fd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion amr2mqtt/rootfs/amr2mqtt/amr2mqtt.py
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@
}


def shutdown(**_):
def shutdown(*args, **kwargs): # pylint: disable=unused-argument
"""Disconnect MQTT client, stop rtlamr and exit."""
mqttc.publish(
topic=settings.MQTT_AVAILABILTY_TOPIC,
Expand Down

0 comments on commit 3f2a7fd

Please sign in to comment.