core/homeassistant/components/mqtt/const.py

26 lines
627 B
Python
Raw Normal View History

"""Constants used by multiple MQTT modules."""
2019-07-31 19:25:30 +00:00
ATTR_DISCOVERY_HASH = "discovery_hash"
ATTR_DISCOVERY_PAYLOAD = "discovery_payload"
ATTR_DISCOVERY_TOPIC = "discovery_topic"
ATTR_PAYLOAD = "payload"
ATTR_QOS = "qos"
ATTR_RETAIN = "retain"
ATTR_TOPIC = "topic"
CONF_BROKER = "broker"
CONF_BIRTH_MESSAGE = "birth_message"
CONF_DISCOVERY = "discovery"
CONF_QOS = ATTR_QOS
CONF_RETAIN = ATTR_RETAIN
2019-07-31 19:25:30 +00:00
CONF_STATE_TOPIC = "state_topic"
CONF_WILL_MESSAGE = "will_message"
DEFAULT_DISCOVERY = False
DEFAULT_QOS = 0
DEFAULT_RETAIN = False
MQTT_CONNECTED = "mqtt_connected"
MQTT_DISCONNECTED = "mqtt_disconnected"
PROTOCOL_311 = "3.1.1"