summaryrefslogtreecommitdiff
path: root/src/inverter_mqtt_sender.py
diff options
context:
space:
mode:
Diffstat (limited to 'src/inverter_mqtt_sender.py')
-rwxr-xr-xsrc/inverter_mqtt_sender.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/inverter_mqtt_sender.py b/src/inverter_mqtt_sender.py
index 74191a2..fb2a2d8 100755
--- a/src/inverter_mqtt_sender.py
+++ b/src/inverter_mqtt_sender.py
@@ -5,11 +5,11 @@ import json
import inverterd
from home.config import config
-from home.mqtt import MQTTBase, poll_tick
+from home.mqtt import MqttBase, poll_tick
from home.mqtt.payload.inverter import Status, Generation
-class MQTTClient(MQTTBase):
+class MqttClient(MqttBase):
def __init__(self):
super().__init__()
@@ -66,7 +66,7 @@ class MQTTClient(MQTTBase):
if __name__ == '__main__':
config.load('inverter_mqtt_sender')
- client = MQTTClient()
+ client = MqttClient()
client.configure_tls()
client.connect_and_loop(loop_forever=False)
client.poll_inverter() \ No newline at end of file