MQTT rework constants (#57529)
* reference CONF_TOPIC to .const * Organize common mqtt constants
This commit is contained in:
parent
931032667c
commit
879144b48d
24 changed files with 61 additions and 105 deletions
|
@ -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
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue