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
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -100,7 +100,7 @@ class MqttSensor(MqttAttributes, MqttAvailability, MqttDiscoveryUpdate,
qos = config.get(CONF_QOS)
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 '
'deprecated, replace with "json_attributes_topic"')