aboutsummaryrefslogtreecommitdiff
path: root/rrd
diff options
context:
space:
mode:
authorElena ``of Valhalla'' Grandi <valhalla@trueelena.org>2023-12-08 15:19:46 +0100
committerElena ``of Valhalla'' Grandi <valhalla@trueelena.org>2023-12-29 07:29:15 +0100
commitf2916ba1e749dc3aca47a256e1472e5032e2c9c8 (patch)
treecdbe61c08aa4761648b03da2db2b11b76eb3127b /rrd
parentc9c3ac00c1a27ff4bcdb0733789a94c738c35c93 (diff)
qa fixes
Diffstat (limited to 'rrd')
-rw-r--r--rrd/management/commands/listen_mqtt.py1
-rw-r--r--rrd/models.py4
-rw-r--r--rrd/mqtt.py1
-rw-r--r--rrd/tests/test_mqtt.py1
4 files changed, 4 insertions, 3 deletions
diff --git a/rrd/management/commands/listen_mqtt.py b/rrd/management/commands/listen_mqtt.py
index 758a4f2..3f0ff4e 100644
--- a/rrd/management/commands/listen_mqtt.py
+++ b/rrd/management/commands/listen_mqtt.py
@@ -2,6 +2,7 @@ from django.core.management.base import BaseCommand
import rrd.mqtt
+
class Command(BaseCommand):
help = "Listen to mqtt events and update rrd files and graphs"
diff --git a/rrd/models.py b/rrd/models.py
index 49efd57..6adc17f 100644
--- a/rrd/models.py
+++ b/rrd/models.py
@@ -1,6 +1,6 @@
-from django.db import models
-from django.conf import settings
import django.contrib.auth.models as amodels
+from django.conf import settings
+from django.db import models
class ModelWithPerms(models.Model):
diff --git a/rrd/mqtt.py b/rrd/mqtt.py
index 713d837..de679ce 100644
--- a/rrd/mqtt.py
+++ b/rrd/mqtt.py
@@ -3,7 +3,6 @@ import logging
import django.conf
import paho.mqtt.client as mqtt
-
log = logging.getLogger(__name__)
diff --git a/rrd/tests/test_mqtt.py b/rrd/tests/test_mqtt.py
index 4ea0852..0a7b90d 100644
--- a/rrd/tests/test_mqtt.py
+++ b/rrd/tests/test_mqtt.py
@@ -4,6 +4,7 @@ import django.test
from .. import mqtt
+
class TestMQTT(django.test.TestCase):
def setUp(self):
self.mqtt = mqtt.MQTTClient()