another type mismatch in config

This commit is contained in:
Wolfgang Hottgenroth 2021-08-24 10:08:32 +02:00
parent 3d97536b9b
commit 8120df60ac
Signed by: wn
GPG Key ID: 6C1E5E531E0D5D7F

View File

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