mirror of
https://github.com/Koenkk/zigbee2mqtt.git
synced 2026-07-12 06:38:53 +00:00
fix: Fix invalid JSON error in Home Assistant update entity (#19659)
This commit is contained in:
committed by
GitHub
parent
d26ea1a411
commit
da04d223b4
@@ -1200,7 +1200,7 @@ export default class HomeAssistant extends Extension {
|
||||
latest_version_template: `{{ value_json['update']['latest_version'] }}`,
|
||||
json_attributes_topic: `${settings.get().mqtt.base_topic}/${entity.name}`, // state topic
|
||||
json_attributes_template:
|
||||
`{{ {'in_progress': value_json['update']['state'] == 'updating'} | tojson }}`,
|
||||
`{'in_progress': {{ iif(value_json['update']['state'] == 'updating', 'true', 'false') }} }`,
|
||||
},
|
||||
};
|
||||
configs.push(updateSensor);
|
||||
|
||||
Reference in New Issue
Block a user