diff --git a/sbapp/sideband/mqtt.py b/sbapp/sideband/mqtt.py index 85a0742..bdf7db8 100644 --- a/sbapp/sideband/mqtt.py +++ b/sbapp/sideband/mqtt.py @@ -58,6 +58,11 @@ class MQTT(): self.is_connected = False def set_server(self, host, port): + try: + port = int(port) + except: + port = None + self.host = host self.port = port or 1883