Fix broken sensor.mqtt json_attributes deprecation message (#19349)
This commit is contained in:
parent
c26c8affc7
commit
07e3843918
1 changed files with 1 additions and 1 deletions
|
@ -100,7 +100,7 @@ class MqttSensor(MqttAttributes, MqttAvailability, MqttDiscoveryUpdate,
|
||||||
qos = config.get(CONF_QOS)
|
qos = config.get(CONF_QOS)
|
||||||
device_config = config.get(CONF_DEVICE)
|
device_config = config.get(CONF_DEVICE)
|
||||||
|
|
||||||
if CONF_JSON_ATTRS in config:
|
if config.get(CONF_JSON_ATTRS):
|
||||||
_LOGGER.warning('configuration variable "json_attributes" is '
|
_LOGGER.warning('configuration variable "json_attributes" is '
|
||||||
'deprecated, replace with "json_attributes_topic"')
|
'deprecated, replace with "json_attributes_topic"')
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue