From f2916ba1e749dc3aca47a256e1472e5032e2c9c8 Mon Sep 17 00:00:00 2001 From: Elena ``of Valhalla'' Grandi Date: Fri, 8 Dec 2023 15:19:46 +0100 Subject: qa fixes --- rrd/management/commands/listen_mqtt.py | 1 + rrd/models.py | 4 ++-- rrd/mqtt.py | 1 - rrd/tests/test_mqtt.py | 1 + 4 files changed, 4 insertions(+), 3 deletions(-) (limited to 'rrd') 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() -- cgit v1.2.3