We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 747b4cd commit 5515c91Copy full SHA for 5515c91
adafruit_funhouse/network.py
@@ -91,7 +91,7 @@ def init_mqtt(
91
username: str = None,
92
password: str = None,
93
use_io: bool = False,
94
- ) -> Union[MQTT, IO_MQTT]:
+ ) -> Union[MQTT.MQTT, IO_MQTT]:
95
"""Initialize MQTT"""
96
self.connect()
97
self._mqtt_client = MQTT.MQTT(
@@ -109,7 +109,7 @@ def init_mqtt(
109
110
# pylint: enable=too-many-arguments
111
112
- def _get_mqtt_client(self) -> Union[MQTT, IO_MQTT]:
+ def _get_mqtt_client(self) -> Union[MQTT.MQTT, IO_MQTT]:
113
if self._mqtt_client is not None:
114
return self._mqtt_client
115
raise RuntimeError("Please initialize MQTT before using")
0 commit comments