mirror of
https://github.com/home-assistant/core.git
synced 2025-08-07 06:35:10 +02:00
Fix broken sensor.mqtt json_attributes deprecation message (#19349)
This commit is contained in:
@@ -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"')
|
||||
|
||||
|
Reference in New Issue
Block a user