Skip to content

Commit

Permalink
removed some junk
Browse files Browse the repository at this point in the history
  • Loading branch information
terminaldweller committed Dec 30, 2023
1 parent d8ede65 commit 78f6ce3
Showing 1 changed file with 0 additions and 19 deletions.
19 changes: 0 additions & 19 deletions scripts/mqtt.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
import irssi

Check failure on line 1 in scripts/mqtt.py

View workflow job for this annotation

GitHub Actions / test

No IRSSI header in script or name not given

Check failure on line 1 in scripts/mqtt.py

View workflow job for this annotation

GitHub Actions / test

Missing __version__ in script
import asyncio
import paho.mqtt.client as mqtt
import threading

Expand Down Expand Up @@ -55,24 +54,6 @@ def publish(
mqtt_retain = irssi.settings_get_bool(b"mqtt_retain")

Check warning on line 54 in scripts/mqtt.py

View workflow job for this annotation

GitHub Actions / test

F841 local variable 'mqtt_retain' is assigned to but never used

threading.Thread(target=work(client, content)).start()
# @args = ("mosquitto_pub", "-h", $MQTTServ, "-p", $MQTTPort, "-q", $MQTTQoS, "-I", $MQTTClient, "-u", $MQTTUser, "-P", $MQTTPass, "-t", $MQTTTopic,);
# await asyncio.create_subprocess_exec(
# "mosquitto_pub",
# "-h",
# mqtt_server,
# "-p",
# repr(mqtt_port),
# "-P",
# mqtt_pass,
# "-t",
# mqtt_topic.decode("utf-8"),
# "-m",
# content.decode("utf-8"),
# stdout=asyncio.subprocess.PIPE,
# stderr=asyncio.subprocess.PIPE,
# )
# task = asyncio.create_task(work(client, content))
# await asyncio.sleep(0)


def mqtt_sig_handler(*args, **kwargs) -> None:
Expand Down

0 comments on commit 78f6ce3

Please sign in to comment.