summaryrefslogtreecommitdiff
path: root/src/sensors_mqtt_sender.py
diff options
context:
space:
mode:
authorEvgeny Zinoviev <me@ch1p.io>2023-05-11 04:18:08 +0300
committerEvgeny Zinoviev <me@ch1p.io>2023-05-11 04:18:12 +0300
commit0aba139aeff8ff80757c5d36502413299a0b449e (patch)
tree2b8e760ff14d4691783eb7c7d341f093199aab82 /src/sensors_mqtt_sender.py
parent586d84b0c0a8b4dc1b5057733892b754397234ec (diff)
mqtt, esp: add new esp8266-based device
Diffstat (limited to 'src/sensors_mqtt_sender.py')
-rwxr-xr-xsrc/sensors_mqtt_sender.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/sensors_mqtt_sender.py b/src/sensors_mqtt_sender.py
index 2cf2717..87a28ca 100755
--- a/src/sensors_mqtt_sender.py
+++ b/src/sensors_mqtt_sender.py
@@ -3,12 +3,12 @@ import time
import json
from home.util import parse_addr, MySimpleSocketClient
-from home.mqtt import MQTTBase, poll_tick
+from home.mqtt import MqttBase, poll_tick
from home.mqtt.payload.sensors import Temperature
from home.config import config
-class MQTTClient(MQTTBase):
+class MqttClient(MqttBase):
def __init__(self):
super().__init__(self)
self._home_id = config['mqtt']['home_id']
@@ -52,7 +52,7 @@ class MQTTClient(MQTTBase):
if __name__ == '__main__':
config.load('sensors_mqtt_sender')
- client = MQTTClient()
+ client = MqttClient()
client.configure_tls()
client.connect_and_loop(loop_forever=False)
client.poll()