MQTT rework constants (#57529)

* reference CONF_TOPIC to .const

* Organize common mqtt constants
This commit is contained in:
Jan Bouwhuis 2021-10-12 11:26:38 +02:00 committed by GitHub
parent 931032667c
commit 879144b48d
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
24 changed files with 61 additions and 105 deletions

View file

@ -10,12 +10,11 @@ from homeassistant.core import HassJob, callback
from homeassistant.helpers import config_validation as cv, template
from .. import mqtt
from .const import CONF_QOS, CONF_TOPIC
# mypy: allow-untyped-defs
CONF_ENCODING = "encoding"
CONF_QOS = "qos"
CONF_TOPIC = "topic"
DEFAULT_ENCODING = "utf-8"
DEFAULT_QOS = 0