Explorar o código

Change to "status" topic

Philipp Basler hai 1 ano
pai
achega
e3e8f0f0b2
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      switchbot_mqtt/__init__.py

+ 1 - 1
switchbot_mqtt/__init__.py

@@ -27,7 +27,7 @@ from switchbot_mqtt._actors.base import _MQTTCallbackUserdata
 
 _LOGGER = logging.getLogger(__name__)
 
-_MQTT_AVAILABILITY_TOPIC="switchbot_mqtt/availability"
+_MQTT_AVAILABILITY_TOPIC="switchbot_mqtt/status"
 # "online" and "offline" to match home assistant's default settings
 # https://www.home-assistant.io/integrations/switch.mqtt/#payload_available
 _MQTT_BIRTH_PAYLOAD="online"