Skip to content

Commit ff18c53

Browse files
authored
Merge pull request #144 from shanearcaro/feature/fix/mqtt-documentation
fix: Update `mqtt_start` docstring and return client code
2 parents f96c03d + e8dbb84 commit ff18c53

File tree

1 file changed

+4
-6
lines changed

1 file changed

+4
-6
lines changed

bambulabs_api/client.py

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -95,15 +95,13 @@ def camera_start(self):
9595

9696
def mqtt_start(self):
9797
"""
98-
Start the camera
98+
Start the mqtt client
9999
100-
Returns
101-
-------
102-
bool
103-
If the camera successfully connected
100+
Returns:
101+
MQTTErrorCode: error code of loop start
104102
"""
105103
self.mqtt_client.connect()
106-
self.mqtt_client.start()
104+
return self.mqtt_client.start()
107105

108106
def mqtt_stop(self):
109107
"""

0 commit comments

Comments
 (0)