From 3eddd39a5aa52d40fbc2e0a12b463d270ddfeba2 Mon Sep 17 00:00:00 2001 From: Dennis Eriksen Date: Thu, 2 Nov 2023 12:44:44 +0100 Subject: adding linting with ruff --- scripts/mqtt_listener.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'scripts/mqtt_listener.py') diff --git a/scripts/mqtt_listener.py b/scripts/mqtt_listener.py index 48dfc6f..981c40a 100644 --- a/scripts/mqtt_listener.py +++ b/scripts/mqtt_listener.py @@ -1,12 +1,12 @@ #!/usr/bin/env python3 ''' Listen for mqtt-events, and trigger for some ''' -import os import json +import os from datetime import datetime -import paho.mqtt.client as mqtt import common +import paho.mqtt.client as mqtt mqtt_server = os.environ['el_mqtt_server'] mqtt_port = int(os.environ['el_mqtt_port']) @@ -64,7 +64,7 @@ def on_message(client, userdata, msg): common.statein(name, data['temperature'], 'temperature', '°C', verbose=True) if 'humidity' in data: common.statein(name, data['humidity'], 'humidity', '%', verbose=True) - + -- cgit v1.2.3