mirror of
https://github.com/Koenkk/zigbee2mqtt.git
synced 2026-08-22 18:49:59 +00:00
fix: Fix Home Assistant in_progress Erroneous JSON error https://github.com/Koenkk/zigbee2mqtt/issues/19597
This commit is contained in:
@@ -1198,7 +1198,8 @@ export default class HomeAssistant extends Extension {
|
||||
value_template: `{{ value_json['update']['installed_version'] }}`,
|
||||
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' }}}`,
|
||||
json_attributes_template:
|
||||
`{{ {'in_progress': value_json['update']['state'] == 'updating'} | tojson }}`,
|
||||
},
|
||||
};
|
||||
configs.push(updateSensor);
|
||||
|
||||
Reference in New Issue
Block a user