Fix broken sensor.mqtt json_attributes deprecation message (#19349)

This commit is contained in:
emontnemery
2018-12-16 15:44:25 +01:00
committed by GitHub
parent c26c8affc7
commit 07e3843918

View File

@@ -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"')