Skip to content

Commit

Permalink
fix: dashes cause failure to login (#115)
Browse files Browse the repository at this point in the history
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
  • Loading branch information
cdnninja and pre-commit-ci[bot] authored Jan 3, 2025
1 parent 1912e96 commit ef55a79
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion yoto_api/YotoMQTTClient.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ def connect_mqtt(self, token: Token, players: dict, callback):
# mqtt.CallbackAPIVersion.VERSION1,
userdata = (players, callback)
self.client = mqtt.Client(
client_id="YOTOAPI" + next(reversed(players)),
client_id="YOTOAPI" + next(iter(players)).replace("-", ""),
transport="websockets",
userdata=userdata,
)
Expand Down

0 comments on commit ef55a79

Please sign in to comment.