From 834fa2e4e089d8adcfe79ff3a09415830f377f55 Mon Sep 17 00:00:00 2001 From: Eric Callahan Date: Thu, 23 Feb 2023 19:37:06 -0500 Subject: [PATCH] mqtt: ignore type error in paho client The original paho client was written without considering static type checking. Signed-off-by: Eric Callahan --- moonraker/components/mqtt.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/moonraker/components/mqtt.py b/moonraker/components/mqtt.py index 80b3ba1..16ed802 100644 --- a/moonraker/components/mqtt.py +++ b/moonraker/components/mqtt.py @@ -135,7 +135,7 @@ class ExtPahoClient(paho_mqtt.Client): sock.do_handshake() if verify_host: - ssl.match_hostname(sock.getpeercert(), self._host) + ssl.match_hostname(sock.getpeercert(), self._host) # type: ignore if self._transport == "websockets": sock.settimeout(self._keepalive)