mirror of
https://github.com/home-assistant/core.git
synced 2025-07-21 12:17:07 +00:00
Fix broken sensor.mqtt json_attributes deprecation message (#19349)
This commit is contained in:
parent
c26c8affc7
commit
07e3843918
@ -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"')
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user