diff options
Diffstat (limited to 'src/inverter_mqtt_receiver.py')
-rwxr-xr-x | src/inverter_mqtt_receiver.py | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/src/inverter_mqtt_receiver.py b/src/inverter_mqtt_receiver.py index a7018f2..d40647e 100755 --- a/src/inverter_mqtt_receiver.py +++ b/src/inverter_mqtt_receiver.py @@ -1,15 +1,14 @@ #!/usr/bin/env python3 import paho.mqtt.client as mqtt import re -import logging -from home.mqtt import MQTTBase +from home.mqtt import MqttBase from home.mqtt.payload.inverter import Status, Generation from home.database import InverterDatabase from home.config import config -class MQTTReceiver(MQTTBase): +class MqttReceiver(MqttBase): def __init__(self): super().__init__(clean_session=False) self.database = InverterDatabase() @@ -70,6 +69,6 @@ class MQTTReceiver(MQTTBase): if __name__ == '__main__': config.load('inverter_mqtt_receiver') - server = MQTTReceiver() + server = MqttReceiver() server.connect_and_loop() |