aboutsummaryrefslogtreecommitdiff
path: root/rrd
diff options
context:
space:
mode:
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()