diff options
Diffstat (limited to 'src/sensors_mqtt_sender.py')
-rwxr-xr-x | src/sensors_mqtt_sender.py | 6 |
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() |