another type mismatch in config

This commit is contained in:
2021-08-24 10:08:32 +02:00
parent 3d97536b9b
commit 8120df60ac

View File

@ -15,7 +15,7 @@ class MqttCoilSubscriber(AbstractMqttPublisher):
def localLoop(self): def localLoop(self):
while True: while True:
sleep(self.config["analogInputPublishPeriod"]) sleep(float(self.config["analogInputPublishPeriod"]))
def onMessage(self, topic, payload): def onMessage(self, topic, payload):
logger.warning("mqtt message received: {} -> {}".format(topic, str(payload))) logger.warning("mqtt message received: {} -> {}".format(topic, str(payload)))