From e8e33997b360bfee461d5939b7c9fef5f3de6e8c Mon Sep 17 00:00:00 2001 From: Dennis Eriksen Date: Thu, 9 Nov 2023 14:11:35 +0100 Subject: optimize and simplify - use more fstrings - use exceptions - don't print "oh lol" - drop tempfiles --- scripts/mqtt_listener.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'scripts/mqtt_listener.py') diff --git a/scripts/mqtt_listener.py b/scripts/mqtt_listener.py index 1ff3176..69e62ad 100644 --- a/scripts/mqtt_listener.py +++ b/scripts/mqtt_listener.py @@ -33,7 +33,7 @@ tempsensors = [ # The callback for when the client receives a CONNACK response from the server. def on_connect(client, userdata, flags, rc): - print("Connected with result code " + str(rc)) + print(f"Connected with result code {rc}") # Subscribing in on_connect() means that if we lose the connection and # reconnect then subscriptions will be renewed. -- cgit v1.2.3