Skip to content

Commit 3a49c38

Browse files
committed
shorten deprecation messages and point to TagoTIP
Replace verbose multi-line warnings with a concise one-liner linking to the TagoTIP MQTT transport docs.
1 parent ccb462f commit 3a49c38

3 files changed

Lines changed: 5 additions & 11 deletions

File tree

docs/source/Services/MQTT_Type.rst

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,7 @@
22
===============
33

44
.. deprecated::
5-
Legacy MQTT is deprecated and will be removed in a future major version.
6-
Migrate to the new MQTT connector or use the HTTP API.
7-
See: https://docs.tago.io/docs/tagoio/integrations/networks/mqtt/
5+
Migrate to TagoTIP: https://docs.tago.io/docs/tagotip/transports/mqtt
86

97
.. _mqtt_options:
108

docs/source/Services/index.rst

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -101,9 +101,7 @@ MQTT
101101
====
102102

103103
.. deprecated::
104-
Legacy MQTT is deprecated and will be removed in a future major version.
105-
Migrate to the new MQTT connector or use the HTTP API.
106-
See: https://docs.tago.io/docs/tagoio/integrations/networks/mqtt/
104+
Migrate to TagoTIP: https://docs.tago.io/docs/tagotip/transports/mqtt
107105

108106
Publish to a MQTT Device
109107

src/tagoio_sdk/modules/Services/MQTT.py

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -25,13 +25,11 @@ def publish(self, mqtt: MQTTData) -> str:
2525
"""Publish an MQTT message.
2626
2727
.. deprecated::
28-
Legacy MQTT is deprecated. Use the new MQTT connector or HTTP API instead.
29-
See: https://docs.tago.io/docs/tagoio/integrations/networks/mqtt/
28+
Migrate to TagoTIP: https://docs.tago.io/docs/tagotip/transports/mqtt
3029
"""
3130
warnings.warn(
32-
"services.mqtt.publish() is deprecated and will be removed in a future major version. "
33-
"Migrate to the new MQTT connector or use the HTTP API. "
34-
"See: https://docs.tago.io/docs/tagoio/integrations/networks/mqtt/",
31+
"services.mqtt.publish() is deprecated. "
32+
"Migrate to TagoTIP: https://docs.tago.io/docs/tagotip/transports/mqtt",
3533
DeprecationWarning,
3634
stacklevel=2,
3735
)

0 commit comments

Comments
 (0)