* Add onConnect to mqtt and doucment

* Add play pause via mouse click
This commit is contained in:
Nicolas Mowen
2024-09-26 08:12:15 -06:00
committed by GitHub
parent a6ccb37683
commit 35a4460334
3 changed files with 28 additions and 12 deletions

View File

@@ -222,6 +222,10 @@ class MqttClient(Communicator): # type: ignore[misc]
self.on_mqtt_command,
)
self.client.message_callback_add(
f"{self.mqtt_config.topic_prefix}/onConnect", self.on_mqtt_command
)
self.client.message_callback_add(
f"{self.mqtt_config.topic_prefix}/restart", self.on_mqtt_command
)